private void EditDoctorButton_Click(object sender, EventArgs e) { if (SelectedDoctorRow == null) { return; } var doctorId = SelectedDoctorRow.Cells[0].Value.ToString(); MyDb.EditDoctorInDataBase( doctorId, FullnameTB.Text, SpecialtyIdTB.Text, VisitCostTB.Text, SalaryPercentTB.Text.Replace(",", "."), HospitalIdTB.Text ); UpdateAllView(); }