예제 #1
0
        //TEST - TO DELETE
        private void button_Click(object sender, RoutedEventArgs e)
        {
            ProductsWindow windows = new ProductsWindow();

            this.Close();
            windows.Show();
        }
예제 #2
0
        private static void ShowProducts(object sender, ExecutedRoutedEventArgs e)
        {
            MainWindow mainWindow = (MainWindow)sender;

            if (_productsWindow == null)
            {
                _productsWindow = new ProductsWindow(mainWindow);
                _productsWindow.Show();
            }
            else
            {
                _productsWindow.Close();
                _productsWindow = new ProductsWindow(mainWindow);
                _productsWindow.Show();
            }
        }
예제 #3
0
        public void GetProducts(SelectedCellsChangedEventArgs cell)
        {
            if (cell.AddedCells.Count == 0)
            {
                return;
            }

            pv = (ProductItemViewModel)cell.AddedCells[0].Item;

            if (cell.AddedCells[0].Column.DisplayIndex != 1)
            {
                return;
            }

            ProductsWindow pw = new ProductsWindow();

            pw.Show();
        }
        private void ProductsManagement()
        {
            ProductsWindow myWindow = new ProductsWindow();

            myWindow.Show();
        }