Exemple #1
0
        private void btn_add_supplier_Click(object sender, EventArgs e)
        {
            FormAddSupplier supp = new FormAddSupplier("add", 0);

            supp.RefreshDgv += new FormAddSupplier.DoEvent(Load_Data_Supp);
            supp.ShowDialog();
        }
Exemple #2
0
 private void EditSupplier_Click(object sender, EventArgs e)
 {
     if (id != 0)
     {
         FormAddSupplier supp = new FormAddSupplier("edit", id);
         supp.RefreshDgv += new FormAddSupplier.DoEvent(Load_Data_Supp);
         supp.ShowDialog();
     }
     else
     {
         MessageBox.Show("Silahkan Pilih Data Terlebih Dahulu", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }