Exemple #1
0
        private void toolStripButtonAddNewOrder_Click(object sender, EventArgs e)
        {
            OrderDetailForm frm = new OrderDetailForm();

            frm.ShowDialog();
            if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
            {
                listViewOrdersLoad(Order.All());
            }
            listViewCustomersLoad(Customer.All(0));
            listViewEmployeesLoad(Employee.All());
        }
Exemple #2
0
 private void toolStripButtonUpdateOrder_Click(object sender, EventArgs e)
 {
     if (listViewOrders.SelectedItems.Count > 0)
     {
         OrderDetailForm frm = new OrderDetailForm();
         frm.OrderID = MyConvert.ToInt32(listViewOrders.SelectedItems[0].SubItems[0].Text);
         frm.ShowDialog();
         if (frm.DialogResult == System.Windows.Forms.DialogResult.OK)
         {
             listViewOrdersLoad(Order.All());
         }
         listViewCustomersLoad(Customer.All(0));
         listViewEmployeesLoad(Employee.All());
     }
 }