예제 #1
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();
        }
예제 #2
0
        public void AddProduct()
        {
            ProductItemViewModel pv = new ProductItemViewModel();

            ProductItemViewModelList.Add(pv);
        }