예제 #1
0
        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();
        }
예제 #2
0
        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();
        }