You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
using BBWY.Client.ViewModels;
|
|
|
|
using BBWY.Controls;
|
|
|
|
|
|
|
|
namespace BBWY.Client.Views.ServiceOrder
|
|
|
|
{
|
|
|
|
/// <summary>
|
|
|
|
/// EditServiceOrder.xaml 的交互逻辑
|
|
|
|
/// </summary>
|
|
|
|
public partial class EditServiceOrder : BWindow
|
|
|
|
{
|
|
|
|
public EditServiceOrder(Models.ServiceOrder serviceOrder)
|
|
|
|
{
|
|
|
|
InitializeComponent();
|
|
|
|
(this.DataContext as EditServiceOrderViewModel).SetData(serviceOrder);
|
|
|
|
GalaSoft.MvvmLight.Messaging.Messenger.Default.Register<bool>(this, "closeEditServiceOrder", (r) =>
|
|
|
|
{
|
|
|
|
if (r)
|
|
|
|
{
|
|
|
|
this.Dispatcher.Invoke(() =>
|
|
|
|
{
|
|
|
|
this.DialogResult = true;
|
|
|
|
this.Close();
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|