C# winform dockpanel 容易处理

#region 界面变量 //初始化界面(左边显示) private LeftHistoricaldata LeftHd = null; //历史数据 private LeftNavigation LeftNg = null; //导航 //中间显示 private MidCollectionTerminal Midmct = null; //采集终端运行配置 private MidConfigurationFile MidCf = null; //档距信息配置 private MidHistoryCollection MidHC = null; //采集终端配置 private MidLineParameters MidLP = null; //线路信息配置 private MidNetworkConfiguration MidNC = null; //网络配置 private MidTensionResistant MidTR = null; //耐张力信息配置 private MidTowerConfiguration MidTC = null; //杆塔信息配置 public SMidHistoricalDataCT SMidhdct; //线路容量历史数据 public SMidSegmenTvolume SMidst = null; //耐张段历史数据 public SMidSpanHistoricalData SMidshd = null; //档距段历史数据 public SMidStrainHistoryData SMidsh = null; //采集终端历史数据 private SelObjChoice sob = null; //查询对象选择 private TMidAlarmInformation TMidAIM = null; //报警信息 private TMidRealtimedata TRtd = null; //实时数据 private TMidEStatusRecord TMidSR = null; //运行状态信息 private TMidEventInformation TMidEI = null; //事件信息 public FMidCompatibilization FMidCbl = null; //增容分析 private ZMidUserInfo ZMidui = null; //用户管理 private SelObjChoice soc = null; //查询对象选择 //右边的显示 public RightChoice Rightch; //选项 #endregion /// <summary> /// 构造函数 /// </summary> public dpMain() { InitializeComponent(); dpdocument();//设置默认界面 GetUserName();//获得当前用户 } public void dpdocument() { //dockPanel1在Mdi容器中 dockPanel1.DocumentStyle = DocumentStyle.DockingMdi; //右边的选择 Rightch = new RightChoice(this); Rightch.ShowHint = DockState.DockRight; Rightch.Show(dockPanel1); Rightch.Hide(); //SplashScreen.Splasher.Status = "正在展示相关的内容"; // System.Threading.Thread.Sleep(100); //左边的历史数据 LeftHd = new LeftHistoricaldata(this); LeftHd.ShowHint = DockState.DockLeft; //记录历史数据页面显示位置dockpanel左边 LeftHd.Show(dockPanel1); //左边的导航 LeftNg = new LeftNavigation(this); LeftNg.ShowHint = DockState.DockLeft; //记录导航页面显示位置dockpanel左边 LeftNg.Show(dockPanel1); //中间的报警信息 TMidAIM = new TMidAlarmInformation(); TMidAIM.ShowHint = DockState.DockBottomAutoHide; TMidAIM.Show(dockPanel1); //实时数据 TRtd = new TMidRealtimedata(this); TRtd.Show(dockPanel1); } 

你可能感兴趣的:(网络,C#,null,WinForm,终端)