private void mnuTestSchedule_Click(object sender, EventArgs e) { FScd_AddEdit s = new FScd_AddEdit(); tsMain.Visible = false; s.MdiParent = this; s.OnScheduleClose += new EventHandler(s_OnScheduleClose); s.Show(); s.WindowState = FormWindowState.Maximized; }
private void updateMPPlanToolStripMenuItem_Click(object sender, EventArgs e) { FScd_AddEdit s; if (CheckIfScheduleOpen() == false) { s = new FScd_AddEdit(); tsMain.Visible = false; s.MdiParent = this; s.OnScheduleClose += new EventHandler(s_OnScheduleClose); s.Show(); s.WindowState = FormWindowState.Maximized; } }