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); }
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); }