public ImportantPartRejesterWindowViewModel(ChildWindow aChildWindow, ImportantPartRejesterWindowState aWindowState, ImportantPartRejesterEntity aImportPartRejesterEntity) { childWindow = aChildWindow; WindowState = aWindowState; ImportantPartRejesterEntity = aImportPartRejesterEntity; Title = "生产令号:" + aImportPartRejesterEntity.ManufactureNumber; OnOk = new DelegateCommand(OnOkCommand); OnCancel = new DelegateCommand(OnCancelCommand); }
public ImportantPartRejesterWindow(ImportantPartRejesterWindowState aWindowState, ImportantPartRejesterEntity aImportantPartRejesterEntity) { InitializeComponent(); this.DataContext = new ImportantPartRejesterWindowViewModel(this, aWindowState, aImportantPartRejesterEntity); }