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(); }
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); } }