void FrmContainerLoad(object sender, EventArgs e) { Input = new frmInput(this); Output = new frmOutput(this); Input.WindowState = System.Windows.Forms.FormWindowState.Maximized; Input.ControlBox = false; Output.WindowState = System.Windows.Forms.FormWindowState.Maximized; Output.ControlBox = false; Config = new frmConfig(); Config.Owner = this; Config.ControlBox = false; Config.ShowDialog(); if (frmInput.cbClosedRMAReportChecked || frmInput.cbMonthlyOTDAnalysisChecked || frmInput.cbNonDespReportChecked || frmInput.cbOpenOrderReportChecked || frmInput.cbWeeklyOTDAnalysisChecked || frmInput.cbMonthlyOTDAnalysisChecked || frmInput.cbOTDReportChecked || frmInput.cbActivityYTDChecked || frmInput.cbOTDvsCockpitChecked) { Input.Show(); Output.Show(); } this.UpdateMenu(); this.UpdateTab(); }
void InputToolStripMenuItemClick(object sender, EventArgs e) { foreach (Form childForm in this.MdiChildren) { if (childForm is Report_Convertor.frmInput) { childForm.Focus(); childForm.WindowState = System.Windows.Forms.FormWindowState.Maximized; return; } } Input = new frmInput(this); Input.WindowState = System.Windows.Forms.FormWindowState.Maximized; Input.ControlBox = false; Input.Show(); }