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); }
public override void SetUp() { base.SetUp(); command = new SaveBatchOperatorCommand(viewModel); }