Exemple #1
0
 private void Change_btn_Click(object sender, EventArgs e)
 {
         string hname = Convert.ToString(Hospital_dataGrid.CurrentRow.Cells[0].Value);
         string haddress = Convert.ToString(Hospital_dataGrid.CurrentRow.Cells[1].Value);
         hospital = new NewHospital(hname, haddress, StatusLbl);
         hospital.iIdRecord = false;
         hospital.ShowDialog();
         hsql = GetSQLString();
         Hospital_dataGrid.DataSource = ToDataTable(hsql);
  }
Exemple #2
0
 private void Add_btn_Click(object sender, EventArgs e)
 {
     NewHospital hospital = new NewHospital(StatusLbl);
     hospital.iIdRecord = true;
     hospital.ShowDialog();
     hsql = GetSQLString();
     Hospital_dataGrid.DataSource = ToDataTable(hsql);
 }