public void RaiseDeleteConfirmation(ProblemVO problem) { DeleteProblemConfirmRequest.Raise(new Confirmation { Title = "Confirmation", Content = "Are you sure you want\nto delete the problem ?" }, r => { if (r.Confirmed) { if (problem != null) { bool ok = DeleteProblem(problem.ProblemID); if (!ok) { ProblemDeletionFailedNotificationRequest.Raise(new Notification { Title = "Information", Content = "Deletion was NOT successful" }); } else { RefreshProblemList(); } } } }); }
public void InsertOrUpdate(ProblemVO problem) { if (problem.ProblemID == default(int)) { _context.SetAdd(problem); } else { _context.SetModified(problem); } }
public WizardViewModel(IRegionManager regionManager) { Wizard = new WizardVO(); _categoryBL = new CategoryBL(); _categories = new ObservableCollection <CategoryVO>(_categoryBL.FindAll()); _subCategoryBL = new SubCategoryBL(); _wizardBL = new WizardBL(); Problem = new ProblemVO(); }
public void InsertOrUpdateGraph(ProblemVO customerGraph) { if (customerGraph.State == State.Added) { _context.Problems.Add(customerGraph); } else { _context.Problems.Add(customerGraph); _context.ApplyStateChanges(); } }
public bool SaveGraph(ProblemVO vo) { _problemAccessor.Repo.InsertOrUpdateGraph(vo); return(_problemAccessor.Save()); }
public WizardVO() { Problem = new ProblemVO(); Solution = new SolutionVO(); Steps = new ObservableCollection <StepVO>(); }
public void Detach(ProblemVO problem) { }