private void ChangeDoctor_btn_Click(object sender, EventArgs e) { DataGridViewRow hclinic = new DataGridViewRow(); hclinic = Doctor_dataGrid.CurrentRow; doctor = new NewDoctor(hclinic, StatusLbl); doctor.iIdRecord = false; doctor.ShowDialog(); string sql = GetSQLStringDoctor(); Doctor_dataGrid.DataSource = ToDataTable(sql); }
private void AddDoctor_btn_Click(object sender, EventArgs e) { doctor = new NewDoctor(StatusLbl); doctor.iIdRecord = true; doctor.ShowDialog(); string sql = GetSQLStringDoctor(); Doctor_dataGrid.DataSource = ToDataTable(sql); }