Example #1
0
        private void ChangeSpecialization_btn_Click(object sender, EventArgs e)
        {
            string hname = Convert.ToString(Specialization_dataGrid.CurrentRow.Cells[0].Value);
            spec = new NewSpecialization(hname, StatusLbl);
            spec.iIdRecord = false;

            spec.ShowDialog();
            Specialization_dataGrid.DataSource = ToDataTable(querySpecialization);
        }
Example #2
0
 private void AddSpecialization_btn_Click(object sender, EventArgs e)
 {
     spec = new NewSpecialization(StatusLbl);
     spec.iIdRecord = true;
     spec.ShowDialog();
     Specialization_dataGrid.DataSource = ToDataTable(querySpecialization);
 }