public ImportantPartWindowViewModel(ChildWindow aChildWndow, ImportantPartWindowState aImportantPartWindowState, ImportantPartEntity aImportantPartEntity)
 {
     childWindow = aChildWndow;
     WindowState = aImportantPartWindowState;
     ImportantPartEntity = aImportantPartEntity;
     Title = "生产令号:" + aImportantPartEntity.ManufactureNumber;
     OnOk = new DelegateCommand(OnOkCommand);
     OnCancel = new DelegateCommand(OnCancelCommand);
 }
 public ImportantPartWindowViewModel(ChildWindow aChildWndow, ImportantPartWindowState aImportantPartWindowState, ImportantPartEntity aImportantPartEntity)
 {
     childWindow         = aChildWndow;
     WindowState         = aImportantPartWindowState;
     ImportantPartEntity = aImportantPartEntity;
     Title    = "生产令号:" + aImportantPartEntity.ManufactureNumber;
     OnOk     = new DelegateCommand(OnOkCommand);
     OnCancel = new DelegateCommand(OnCancelCommand);
 }
Example #3
0
 public ImportantPartWindow(ImportantPartWindowState aImportantPartWindowState, ImportantPartEntity aImportantPartEntity)
 {
     InitializeComponent();
     this.DataContext = new ImportantPartWindowViewModel(this, aImportantPartWindowState, aImportantPartEntity);
 }
 public ImportantPartWindow(ImportantPartWindowState aImportantPartWindowState, ImportantPartEntity aImportantPartEntity)
 {
     InitializeComponent();
     this.DataContext = new ImportantPartWindowViewModel(this, aImportantPartWindowState, aImportantPartEntity);
 }