Esempio n. 1
0
        private void LoadAddForm(string Order)
        {            
            if (Order.Equals("Staff"))
            {
                StaffWindow frm = new StaffWindow(false);
                frm.ShowDialog();
            }
            if (Order.Equals("Product"))
            {
                ProductWindow frm1 = new ProductWindow(false);
                frm1.ShowDialog();
            }

            if (Order.Equals("Bill"))
            {
                BillWindow frm2 = new BillWindow(curStaff);
                frm2.ShowDialog();
            }

            if (Order.Equals("Customer"))
            {
                CustomerWindow frm3 = new CustomerWindow(false,0);
                frm3.ShowDialog();
            }
            
            if (Order.Equals("Discount"))
            {
                DateTime td=DateTime.Today;
                DiscountWindow frm4 = new DiscountWindow(false,0,td);
                frm4.ShowDialog();
            }

            if (Order.Equals("Supplier"))
            {
                SupplierWindow frm5 = new SupplierWindow(false,0);
                frm5.ShowDialog();
            }

        }
Esempio n. 2
0
 private void btnPayment_Click(object sender, RoutedEventArgs e)
 {
     BillWindow bill = new BillWindow(curStaff);
     bill.ShowDialog();
 }