Пример #1
0
        private void btnNew_Click(object sender, EventArgs e)
        {
            switch (_userchoice)
            {
            case "Employees":
                var ed = new EmployeeDetails();
                ed.ShowDialog();
                break;

            case "Stock":
                var sd = new StockDetails();
                sd.ShowDialog();
                break;

            case "Customers":
                var cd = new CustomerDetails();
                cd.ShowDialog();
                break;

            case "Suppliers":
                var supd = new SupplierDetails();
                supd.ShowDialog();
                break;

            case "Categories":
                var catd = new CategorieDetails();
                catd.ShowDialog();
                break;

            case "Customer Orders":
                var cod = new CustomerOrdersOverview(_loggedInEmployee);
                cod.ShowDialog();
                break;

            case "Supplier Orders":
                var sod = new SupplierOrdersOverview(_loggedInEmployee);
                sod.ShowDialog();
                break;
            }
        }
Пример #2
0
        private void btnSupplierOrders_Click(object sender, EventArgs e)
        {
            var f = new SupplierOrdersOverview(_loggedInEmployee);

            f.ShowDialog();
        }