예제 #1
0
 private void settingsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (doctor_id != "1")
     {
         string id;
         id = this.cntrl.permission_for_settings(doctor_id);
         if (int.Parse(id) > 0)
         {
             var form2 = new Practice_Details();
             form2.doctor_id = doctor_id;
             form2.Closed   += (sender1, args) => this.Close();
             this.Hide();
             form2.Show();
         }
         else
         {
             MessageBox.Show("There is No Privilege to Clinic Settings", "Security Role", MessageBoxButtons.OK, MessageBoxIcon.Stop);
         }
     }
     else
     {
         var form2 = new Practice_Details();
         form2.doctor_id = doctor_id;
         form2.Closed   += (sender1, args) => this.Close();
         this.Hide();
         form2.Show();
     }
 }
예제 #2
0
 private void settingsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         string doctrid = this.ctrlr.settingsprivilage(doctor_id);
         if (doctor_id != "1")
         {
             string id;
             id = doctrid;
             if (int.Parse(id) > 0)
             {
                 var form2 = new Practice_Details();
                 form2.doctor_id = doctor_id;
                 form2.Closed   += (sender1, args) => this.Close();
                 this.Hide();
                 form2.Show();
             }
             else
             {
                 MessageBox.Show("There is No Privilege to Clinic Settings", "Security Role", MessageBoxButtons.OK, MessageBoxIcon.Stop);
             }
         }
         else
         {
             var form2 = new Practice_Details();
             form2.doctor_id = doctor_id;
             form2.Closed   += (sender1, args) => this.Close();
             this.Hide();
             form2.Show();
         }
     }
     catch (Exception ex)
     { MessageBox.Show("Error!..", ex.Message, MessageBoxButtons.OK, MessageBoxIcon.Error); }
 }
예제 #3
0
 private void settingsToolStripMenuItem_Click(object sender, EventArgs e)
 {
     try
     {
         if (doctor_id != "1")
         {
             string id;
             id = this.cntrl.permission_for_settings(doctor_id);
             if (int.Parse(id) > 0)
             {
                 var form2 = new PappyjoeMVC.View.Practice_Details();
                 form2.doctor_id = doctor_id;
                 this.Hide();
                 form2.Show();
             }
             else
             {
                 MessageBox.Show("There is No Privilege to Clinic Settings", "Security Role", MessageBoxButtons.OK, MessageBoxIcon.Stop);
             }
         }
         else
         {
             var form2 = new PappyjoeMVC.View.Practice_Details();
             form2.doctor_id = doctor_id;
             this.Hide();
             form2.Show();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "Error !...", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
예제 #4
0
        private void button_cancel_Click(object sender, EventArgs e)
        {
            var form2 = new Practice_Details();

            form2.doctor_id = doctor_id;
            form2.Closed   += (sender1, args) => this.Close();
            this.Hide();
            form2.Show();
        }