Beispiel #1
0
 private void addBtn_Click(object sender, EventArgs e)
 {
     using (FrmSatuan satuan = new FrmSatuan())
     {
         satuan.IsEdit = false;
         satuan.ShowDialog();
     }
     recordLoad();
 }
Beispiel #2
0
 private void editBtn_Click(object sender, EventArgs e)
 {
     using (FrmSatuan satuan = new FrmSatuan())
     {
         satuan.IsEdit = true;
         foreach (DataGridViewRow row in dataGridView1.SelectedRows)
         {
             satuan.PrimaryKey = row.Cells[0].Value.ToString();
             satuan.NmSatuan   = row.Cells[1].Value.ToString();
         }
         satuan.ShowDialog();
     }
     recordLoad();
 }