private void ExistingAppointments_Click(object sender, EventArgs e)
        {
            if (Application.OpenForms["SchedulingCalendar"] as SchedulingCalendar == null)
            {
                SchedulingCalendar schedulingCalendar = new SchedulingCalendar(this.schedulerID, this)
                {
                    MdiParent   = this,
                    WindowState = FormWindowState.Maximized
                };

                Center(schedulingCalendar);
                schedulingCalendar.Show();
            }
        }
        private void AddNewAppointmentButton_Click(object sender, EventArgs e)
        {
            if (Application.OpenForms["SchedulingCalendar"] as SchedulingCalendar == null)
            {
                SchedulingCalendar schedulingCalendar = new SchedulingCalendar(thisPatientID, (ProviderMain)this.MdiParent, this)
                {
                };
                schedulingCalendar.WindowState = FormWindowState.Normal;
                Center(schedulingCalendar);
                schedulingCalendar.Show();
            }

            InvokeLostFocus(this, e);
        }
Exemple #3
0
        public void Button2_Click(object sender, EventArgs e)
        {
            for (int i = Application.OpenForms.Count - 1; i >= 0; i--)
            {
                if (Application.OpenForms[i] != this && Application.OpenForms[i].Name != "WelcomeHomePage")
                {
                    Application.OpenForms[i].Close();
                }
            }

            if (Application.OpenForms["SchedulingCalendar"] as SchedulingCalendar == null)
            {
                SchedulingCalendar schedulingCalendar = new SchedulingCalendar(thisProviderID, this)
                {
                    MdiParent   = this,
                    WindowState = FormWindowState.Maximized
                };

                Center(schedulingCalendar);
                schedulingCalendar.Show();
            }
        }