private void UCNavigation_Load(object sender, EventArgs e) { if (this.loadFlag) { string title = "维修业务"; if (SYSModel.clsSysConfig.STR_CURR_MAINMEMU == "CL_RepairBusiness") { title = "维修业务"; } else if (SYSModel.clsSysConfig.STR_CURR_MAINMEMU == "CL_RepairBusiness") { title = "配件业务"; } this.ucMap = new UCMap(title); this.panelMap.Controls.Add(ucMap); ucMap.Font = new System.Drawing.Font(ucMap.Font.FontFamily, 9); this.ucMap.Dock = DockStyle.Fill; //ucMap.Width = this.panelMap.Width; //ucMap.Height = this.panelMap.Height; //ucMap.Anchor = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top; ucMap.Location = new Point(0, 0); ucMap.SetMap(new UCMaintain()); this.loadFlag = false; } }
private void UCNavigation_Load(object sender, EventArgs e) { if (this.loadFlag) { //SYSModel.clsSysConfig.STR_CURR_MAINMEMU = "CL_RepairBusiness"; string title = "维修业务"; this.ucMap = new UCMap(title); this.panelMap.Controls.Add(ucMap); ucMap.Font = new System.Drawing.Font(ucMap.Font.FontFamily, 9); ucMap.Width = this.panelMap.Width; ucMap.Anchor = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top; ucMap.Location = new Point(0, 0); ucMap.SetMap(new UCMaintain()); this.loadFlag = false; } }