Exemple #1
0
 private void btSuppEdit_Click(object sender, EventArgs e)                                           //WORKS
 {
     if (listViewSupplier.SelectedItems.Count > 0)
     {
         int outcome = 1;
         int.TryParse(listViewSupplier.SelectedItems[0].Name, out outcome);
         Supplier     supplier     = Program.db.Suppliers.Find(outcome);
         EditSupplier supplieredit = new EditSupplier(supplier);
         supplieredit.Show();
     }
 }
Exemple #2
0
        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////Buttons Suppliers
        private void btSuppAdd_Click(object sender, EventArgs e)                                            //WORKS
        {
            EditSupplier supplierAdd = new EditSupplier();

            supplierAdd.Show();
        }