private void OnModifyOrderNotice(object sender, NotificationEventArgs<Order> eventArgs) { // Create order view model and view var orderDetail = new OrderDetailView(eventArgs.Data); orderDetail.Owner = Window.GetWindow(this); // Show order detail dialog orderDetail.ShowDialog(); }
private void OnModifyOrderNotice(object sender, NotificationEventArgs <Order> eventArgs) { // Create order view model and view var orderDetail = new OrderDetailView(eventArgs.Data); orderDetail.Owner = Window.GetWindow(this); // Show order detail dialog orderDetail.ShowDialog(); }
private void OnCreateOrderNotice(object sender, NotificationEventArgs<Order> eventArgs) { // Create order view model and view var orderDetail = new OrderDetailView(eventArgs.Data); orderDetail.Owner = Window.GetWindow(this); // Show order detail dialog if (orderDetail.ShowDialog() == false) return; // Add new order _viewModel.AddNewOrder(orderDetail.ViewModel.Model); }
private void OnCreateOrderNotice(object sender, NotificationEventArgs <Order> eventArgs) { // Create order view model and view var orderDetail = new OrderDetailView(eventArgs.Data); orderDetail.Owner = Window.GetWindow(this); // Show order detail dialog if (orderDetail.ShowDialog() == false) { return; } // Add new order _viewModel.AddNewOrder(orderDetail.ViewModel.Model); }