Пример #1
0
        private void ViewExcute()
        {
            StoreroomView storeroomViewPage = new StoreroomView();
            var           query             = from c in _model.ProductsSet
                                              where c.ProductID > -1
                                              select new { c.ProductID, c.Name, c.Model, c.Quantity, c.Rack };

            var results = query.ToList();

            storeroomViewPage.dataGrid1.ItemsSource = results;
            // TODO: MVVM navigation to change
            ((MainWindow)System.Windows.Application.Current.MainWindow).NavigationService.Navigate(storeroomViewPage);
        }
Пример #2
0
        private void ViewExcute()
        {          
            StoreroomView storeroomViewPage = new StoreroomView();
            var query = from c in _model.ProductsSet
                        where c.ProductID > -1
                        select new { c.ProductID, c.Name, c.Model, c.Quantity, c.Rack };

            var results = query.ToList();
            storeroomViewPage.dataGrid1.ItemsSource = results;
            // TODO: MVVM navigation to change
            ((MainWindow)System.Windows.Application.Current.MainWindow).NavigationService.Navigate(storeroomViewPage);
        }