Esempio n. 1
0
        private void manageStock_MouseLeftButtonDown(object sender, MouseButtonEventArgs e)
        {
            //MessageBox.Show("Manage Stock");
            this.Hide();
            manageStock ms = new manageStock();

            ms.Show();
        }
Esempio n. 2
0
        void CommonHandler(object sender, RoutedEventArgs e)
        {
            MenuItem mi = e.Source as MenuItem;

            switch (mi.Name)
            {
            case "add":
            {         //do something;
                      //MessageBox.Show("add");

                manageStock a = new manageStock();
                this.Hide();
                a.Show();
                break;
            }

            case "delete":
            {         //do something else
                      //MessageBox.Show("delete");

                deleteItem a = new deleteItem();
                this.Hide();
                a.Show();
                break;
            }

            case "update":
            {         //something else again
                      //MessageBox.Show("update");

                updateItem a = new updateItem();
                this.Hide();
                a.Show();
                break;
            }

            case "stock":
            {         //something else again
                      //MessageBox.Show("stock");

                stockReport a = new stockReport();
                this.Hide();
                a.Show();
                break;
            }
            }
        }