/// <param name="orderVM">所属的订单的 View Model</param>
 public AddDetailWindow(OrderViewModel orderVM)
 {
     InitializeComponent();
     this.orderVM = orderVM;
     vm           = new OrderDetailViewModel(orderVM);
     DataContext  = vm;
 }
 private void ConfirmButton_Click(object sender, RoutedEventArgs e)
 {
     DialogResult = true;
     OrderResult  = vm;
     Close();
 }
 public AddOrderWindow()
 {
     InitializeComponent();
     vm          = new OrderViewModel();
     DataContext = vm;
 }