//TEST - TO DELETE private void button_Click(object sender, RoutedEventArgs e) { ProductsWindow windows = new ProductsWindow(); this.Close(); windows.Show(); }
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(); } }
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(); }