Exemple #1
0
        private void button1_Click_2(object sender, EventArgs e)
        {
            _obj3 = this;
            doctor_schedule_panel dsp = new doctor_schedule_panel();

            dsp.Dock = DockStyle.Fill;
            doctor_panel_rightSide.Controls.Add(dsp);
            doctor_panel_rightSide.Controls["doctor_schedule_panel"].BringToFront();
        }
Exemple #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (!doctor_panel.Instance_3.PnlContainer_3.Controls.ContainsKey("doctor_schedule_panel"))
     {
         doctor_schedule_panel dsp = new doctor_schedule_panel(user_id);
         dsp.Dock = DockStyle.Fill;
         doctor_panel.Instance_3.PnlContainer_3.Controls.Add(dsp);
     }
     doctor_panel.Instance_3.PnlContainer_3.Controls["doctor_schedule_panel"].BringToFront();
 }