private void OnModifyImportantPartCommand() { ImportantPartWindow importantPartWindow = new ImportantPartWindow(ImportantPartWindowState.MODIFY, SelectImportantPartEntity); importantPartWindow.Closed += importantPartWindowModify_Closed; importantPartWindow.Show(); }
private void OnOutPartCommand() { //SelectImportantPartEntity.PartOutTime = DateTime.Now; ImportantPartWindow importantPartWindow = new ImportantPartWindow(ImportantPartWindowState.OUT, SelectImportantPartEntity); importantPartWindow.Closed += importantPartWindowModify_Closed; importantPartWindow.Show(); }
private void OnArivePartCommand() { SelectImportantPartEntity.AriveTime = DateTime.Now; ImportantPartWindow importantPartWindow = new ImportantPartWindow(ImportantPartWindowState.ARIVE, SelectImportantPartEntity); importantPartWindow.Closed += importantPartWindowModify_Closed; importantPartWindow.Show(); }
private void OnAddImportantPartCommand() { AddImportantPartEntity = new ImportantPartEntity(); AddImportantPartEntity.UserEntityDictionary = UserEntityDictionary; AddImportantPartEntity.ImportantPart = new ProductManager.Web.Model.important_part(); ImportantPartWindow importantPartWindow = new ImportantPartWindow(ImportantPartWindowState.Add, AddImportantPartEntity); importantPartWindow.Closed += importantPartWindow_Closed; importantPartWindow.Show(); }
void importantPartWindowModify_Closed(object sender, EventArgs e) { ImportantPartWindow importantPartWindow = sender as ImportantPartWindow; if (importantPartWindow.DialogResult == true) { IsBusy = true; SubmitOperation submitOperation = productDomainContext.SubmitChanges(); submitOperation.Completed += submitOperation_Completed; } }
void importantPartWindow_Closed(object sender, EventArgs e) { ImportantPartWindow importantPartWindow = sender as ImportantPartWindow; if (importantPartWindow.DialogResult == true) { ImportantPartEntityList.Add(AddImportantPartEntity); productDomainContext.important_parts.Add(AddImportantPartEntity.ImportantPart); IsBusy = true; SubmitOperation submitOperation = productDomainContext.SubmitChanges(); submitOperation.Completed += submitOperation_Completed; } }
private void OnViewImportantPartCommand() { ImportantPartWindow importantPartWindow = new ImportantPartWindow(ImportantPartWindowState.VIEW, SelectImportantPartEntity); importantPartWindow.Show(); }