zoukankan      html  css  js  c++  java
  • 基础框架平台——基础管理框架——GUI抽象设计(面板)

    通过对vs  net2005和sharpdevelop面板的分析,总结得出以下内容:
    1,每种面板每次只能打开一个工具窗口.
    2,用户没有必要在运行时添加删除面板,具有即时访问的需求

    3,面板一直是可见的,不能关闭,只能隐藏.这样可以节省弹出时间

    4,面板不在工作台窗体中显示,布局管理器负责显示面板.

    通过IPadContent.cs来定义面板接口,只定义了获取附着控件属性和重绘方法,代码如下:

     1using System;
     2using System.Windows.Forms;
     3
     4
     5namespace MetaApplication
     6{
     7    /// <summary>
     8    /// The IPadContent interface is the basic interface to all "tool" windows
     9    /// in SharpDevelop.
    10    /// </summary>

    11    public interface IPadContent : IDisposable
    12    {
    13        /// <summary>
    14        /// Returns the Windows.Control for this pad.
    15        /// </summary>

    16        Control Control
    17        {
    18            get;
    19        }

    20
    21        /// <summary>
    22        /// Re-initializes all components of the pad. Don't call unless
    23        /// you know what you do.
    24        /// </summary>

    25        void RedrawContent();
    26    }

    27}

    28
  • 相关阅读:
    [MySQL优化案例]系列 — 分页优化
    [MySQL优化案例]系列 — RAND()优化
    CSS模块化思想-----命名是个技术活
    php curl选项列表(超详细)
    CURL使用介绍
    HTTP头信息
    git常用命令
    Git .gitignore文件说明
    yield(),wait(),sleep(),join()
    Java对象序列化和返序列化
  • 原文地址:https://www.cnblogs.com/bobzhangfw/p/632248.html
Copyright © 2011-2022 走看看