コード例 #1
0
        private void OnTimesheetMakerClick(object sender, EventArgs e)
        {
            timesheetMakerToolStripMenuItem.Enabled = false;

            TimesheetMakerForm form = new TimesheetMakerForm();

            form.FormClosed += new FormClosedEventHandler(
                delegate(object _sender, FormClosedEventArgs _e) {
                timesheetMakerToolStripMenuItem.Enabled = true;
            });
            form.MdiParent = this;
            form.Show();
        }
コード例 #2
0
ファイル: MainForm.cs プロジェクト: gangelo/BillingUtils
        private void OnTimesheetMakerClick(object sender, EventArgs e)
        {
            timesheetMakerToolStripMenuItem.Enabled = false;

            TimesheetMakerForm form = new TimesheetMakerForm();
            form.FormClosed += new FormClosedEventHandler(
                    delegate(object _sender, FormClosedEventArgs _e) {
                        timesheetMakerToolStripMenuItem.Enabled = true;
                    });
            form.MdiParent = this;
            form.Show();
        }