예제 #1
0
        private void BTambah_Click(object sender, EventArgs e)
        {
            FInputGuru f = new FInputGuru();

            f.ShowDialog();
            Loaddb();
        }
예제 #2
0
 private void BUbah_Click(object sender, EventArgs e)
 {
     if (Dg.Rows.Count >= 0)
     {
         if (Dg.SelectedRows.Count > 0)
         {
             FInputGuru f = new FInputGuru(Dg.CurrentRow.Cells[Dg.GetColumnIndexByHeader("KODE GURU")].Value.ToString());
             f.ShowDialog();
             Dg.LoadIndex(Loaddb, 1);
         }
     }
     else
     {
         MessageBox.Show("Data Kosong!", "Peringatan", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }