Пример #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));
          }
      }
Пример #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");
 }