示例#1
0
        private void MenuVm_OrderPlaced(object sender, System.EventArgs e)
        {
            Window orderWindow = new OrderSummaryWindow();

            orderWindow.DataContext = menuVm.OrderSummaryViewModel;
            orderWindow.Show();
            this.Close();
        }
示例#2
0
        private void BackButton_Click(object sender, RoutedEventArgs e)
        {
            OrderSummaryWindow orderSummaryWindow = new OrderSummaryWindow();

            orderSummaryWindow.DataContext = new OrderSummaryViewModel();
            orderSummaryWindow.Show();
            this.Close();
        }