예제 #1
0
 private void AddDoctor_Click(object sender, EventArgs e)
 {
     //MyDb.DSet.Tables[0].Rows.Add();
     MyDb.AddDoctorToDataBase(
         FullnameTB.Text,
         SpecialtyIdTB.Text,
         VisitCostTB.Text,
         SalaryPercentTB.Text.Replace(",", "."),
         HospitalIdTB.Text);
     UpdateAllView();
 }
예제 #2
0
 private void AddDoctor_Click(object sender, EventArgs e)
 {
     try
     {
         //MyDb.DSet.Tables[0].Rows.Add();
         MyDb.AddDoctorToDataBase(
             FullnameTB.Text,
             SpecialtyIdTB.Text,
             VisitCostTB.Text,
             SalaryPercentTB.Text.Replace(",", "."),
             HospitalIdTB.Text);
         UpdateAllView();
     }
     catch (Exception e2)
     {
         ShowAppError(e2.Message);
     }
 }