예제 #1
0
 public void InsertOrUpdate(StepVO step)
 {
     if (step.StepID == default(int))
     {
         _context.SetAdd(step);
     }
     else
     {
         _context.SetModified(step);
     }
 }
예제 #2
0
 public void InsertOrUpdateGraph(StepVO customerGraph)
 {
     if (customerGraph.State == State.Added)
     {
         _context.Steps.Add(customerGraph);
     }
     else
     {
         _context.Steps.Add(customerGraph);
         _context.ApplyStateChanges();
     }
 }
 public void DeleteStep(StepVO step)
 {
     _wizard.Steps.Remove(step);
 }
 public void ChangeSelectedStep(StepVO step)
 {
     SelectedStep = step;
 }
 public void RefreshProblemList()
 {
     Problems = new ObservableCollection<ProblemVO>(_problemBL.FindAll());
     SelectedStep = null;
     SelectedSolution = null;
     Steps = null;
 }