Example #1
0
 public BatchOperatorViewModel(IBatchOperatorSource operatorSource)
 {
     this.operatorSource = operatorSource;
     OperatorRepository  = operatorSource.OperatorRepository;
     SelectedBatchOperatorFromListBoxIndex = -1;
     validator                    = new BatchOperatorValidator();
     BatchOperator                = new BatchOperator("", "");
     SaveBatchOperator            = new SaveBatchOperatorCommand(this);
     DeleteSelectedBatchOperator  = new DeleteSelectedBatchOperatorCommand(this);
     BatchOperatorComboBoxChanged = new BatchOperatorComboBoxChangedCommand(this);
     BatchOperatorListBoxChanged  = new BatchOperatorListBoxChangedCommand(this);
 }
Example #2
0
 public override void SetUp()
 {
     base.SetUp();
     command = new SaveBatchOperatorCommand(viewModel);
 }