private void miEditOrder_Click(object sender, RoutedEventArgs e) { try { var item = this.GetMIOrder(sender); var w = new Orders.OrderModifyReciverInfoWindow { Order = item.Source }; bool?ret = w.ShowDialog(); if (ret.Value) { } } catch (Exception ex) { MessageBox.Show(ex.Message); } }
private void miEditOrder_Click(object sender, RoutedEventArgs e) { try { var item = this.GetMIOrder(sender); var w = new Orders.OrderModifyReciverInfoWindow { Order = item.Source }; bool?ret = w.ShowDialog(); if (ret.Value) { item.ReceiverAddress = item.Source.ReceiverAddress; item.ReceiverMobile = item.Source.ReceiverMobile; item.ReceiverName = item.Source.ReceiverName; item.ReceiverPhone = item.Source.ReceiverPhone; CheckOrder(new PrintOrderViewModel[] { item }); } } catch (Exception ex) { MessageBox.Show(ex.Message); } }