Example #1
0
        private void Show_Orders_Click(object sender, RoutedEventArgs e)
        {
            this.PartGrid.Children.Clear();
            var orderView = new DataGridUserControl();

            orderView.DataGridTitle.Text = StaticStrings.ORDER_LIST_TITLE;
            orderView.DataContext        = viewModel.Orders;
            this.PartGrid.Children.Add(orderView);
        }
Example #2
0
        private void Show_Customer_Click(object sender, RoutedEventArgs e)
        {
            this.PartGrid.Children.Clear();
            var customerView = new DataGridUserControl();

            customerView.DataGridTitle.Text = StaticStrings.CUSTOMER_LIST_TITLE;
            customerView.DataContext        = viewModel.Customers;
            this.PartGrid.Children.Add(customerView);
        }