示例#1
0
        private void btnTambah_Click(object sender, EventArgs e)
        {
            BarangInputForm bif = new BarangInputForm();

            bif.ShowDialog();
            ShowData();
        }
示例#2
0
 private void editToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (listBarang.SelectedItems.Count > 1)
     {
         MessageBox.Show("Hanya Pilih 1 Untuk Edit");
     }
     else
     {
         barang[0] = listBarang.SelectedItems[0].SubItems[1].Text;
         barang[1] = listBarang.SelectedItems[0].SubItems[2].Text;
         isEdit    = true;
         BarangInputForm bif = new BarangInputForm();
         bif.ShowDialog();
         isEdit = false;
         ShowData();
     }
 }