Example #1
0
 private void UpdateTestSeries(SimpleEditableTestSeries source, TestSeries destination)
 {
     destination.ID            = source.ID;
     destination.Name          = source.Name;
     destination.Subject       = source.Subject;
     destination.SubCategory   = source.SubCategory;
     destination.TestCount     = source.Length;
     destination.MaximumPoints = source.MaximumPoints;
 }
Example #2
0
 public void SetTestSeries(TestSeries testSeries)
 {
     _editingTestSeries = testSeries;
     if (EditingTestSeries != null)
     {
         EditingTestSeries.ErrorsChanged -= RaiseCanExecuteChanged;
     }
     EditingTestSeries = new SimpleEditableTestSeries();
     EditingTestSeries.ErrorsChanged += RaiseCanExecuteChanged;
     CopyTestSeries(testSeries, EditingTestSeries);
 }