示例#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();
     }
 }
示例#2
0
        ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////Buttons Suppliers
        private void btSuppAdd_Click(object sender, EventArgs e)                                            //WORKS
        {
            EditSupplier supplierAdd = new EditSupplier();

            supplierAdd.Show();
        }