Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        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);
        }