예제 #1
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);
            Current.ShutdownMode = ShutdownMode.OnExplicitShutdown;

            AuthWindow authWnd = new AuthWindow();

            if (!authWnd.ShowDialog().Value)
            {
                Current.Shutdown();
            }
            Current.ShutdownMode = ShutdownMode.OnMainWindowClose;

            WorkerWindow      workerWindow      = new WorkerWindow();
            OrdersWindow      ordersWindow      = new OrdersWindow();
            MenuWindow        menuWindow        = new MenuWindow();
            CreateOrderWindow createOrderWindow = new CreateOrderWindow();

            try
            {
                workerWindow.Show();
                ordersWindow.Show();
                menuWindow.Show();
                createOrderWindow.Show();
            }
            catch
            {
                Application.Current.Shutdown();
            }
        }
        private void order_Click(object sender, RoutedEventArgs e)
        {
            OrdersWindow orders = new OrdersWindow(order);

            orders.Show();
        }
예제 #3
0
        private void btnOrders_Click(object sender, RoutedEventArgs e)
        {
            OrdersWindow ow = new OrdersWindow();

            ow.Show();
        }
        private void OrdersManagement()
        {
            OrdersWindow myWindow = new OrdersWindow();

            myWindow.Show();
        }