Example #1
0
      private void button6_Click(object sender, EventArgs e)  //anulowanie
      {
          SQLDoc.updateDescDia(Int32.Parse(IDVis), textBox5.Text.ToString(), textBox4.Text.ToString(), "C");
          MessageBox.Show("Zapisano i anulowano wizytÄ™");
          //this.Controls.Clear();
          //this.Visible = false;
          //this.Parent.Hide();
          int idDoctor = -1;
          int x        = Int32.Parse(IDVis);
          var res1     = SQLDoc.GetAppointment(x);

          foreach (var order in res1)
          {
              idDoctor = order.Id_Doctor;
          }
          if (idDoctor != -1)
          {
              Panel P = new Panel();
              P.Controls.Clear();
              this.Hide();
              this.Parent.Controls.Add(new Doctor(idDoctor));
          }
      }
Example #2
0
 private void save_Click(object sender, EventArgs e)  //zapisz
 {
     SQLDoc.updateDescDia(Int32.Parse(IDVis), textBox5.Text.ToString(), textBox4.Text.ToString(), "R");
     MessageBox.Show("Zapisano");
 }