public ipoverview() { InitializeComponent(); this.model = new IpOverViewModel(); this.xapFormControl1 = new XapFormControl(); this.xapFormControl1.Dock = DockStyle.Fill; this.xapFormControl1.Size = this.Size; this.Load += new EventHandler(ipoverview_Load); managecontrol = new DashboardWidghts(); managecontrol.Dock = DockStyle.Fill; managecontrol.Size = this.xapFormControl1.Size; managecontrol.Location = new Point(0, 0); FirstCols = new LayoutMColmns(); SecCols = new LayoutMColmns(); ThirdCols = new LayoutMColmns(); //大屏情况下列宽度的重置 if (RelativeUIParam.ScreenSize == ScreenSize.Large) { SecCols.ColWidth = secondColumnWidth; FirstCols.ColWidth = firstColumnWidth; ThirdCols.ColWidth = thirdColumnWidth; } managecontrol.DiagInfoList.Add(this.FirstCols); managecontrol.DiagInfoList.Add(this.SecCols); managecontrol.DiagInfoList.Add(this.ThirdCols); this.xapFormControl1.AddRender(managecontrol); //this.Controls.Add(this.xapFormControl1); this.AddRender(this.xapFormControl1); }
public opoverview() { InitializeComponent(); this.model = new IpOverViewModel(); this.xapFormControl1 = new XapFormControl(); this.xapFormControl1.Dock = DockStyle.Fill; this.Load += new EventHandler(opoverview_Load); this.Controls.Add(this.xapFormControl1); managecontrol = new DashboardWidghts(); managecontrol.Dock = DockStyle.Fill; managecontrol.Size = this.xapFormControl1.Size; managecontrol.Location = new Point(0, 0); FirstCols = new LayoutMColmns(); SecCols = new LayoutMColmns(); ThirdCols = new LayoutMColmns(); managecontrol.DiagInfoList.Add(this.FirstCols); managecontrol.DiagInfoList.Add(this.SecCols); managecontrol.DiagInfoList.Add(this.ThirdCols); this.xapFormControl1.AddRender(managecontrol); }