public InstructionEditorViewModel(MainWindowViewModel main, IPexLoader pexLoader, IDialogService dialogService) { this.main = main; this.pexLoader = pexLoader; this.dialogService = dialogService; if (main != null) { InsertAfterCommand = new RelayCommand(InsertInstructionAfter, CanInsert); InsertBeforeCommand = new RelayCommand(InsertInstructionBefore, CanInsert); EditInstructionCommand = new RelayCommand(EditInstruction, CanInsert); RemoveInstructionCommand = new RelayCommand(RemoveInstruction, CanInsert); CreateInstructionCommand = new RelayCommand(CreateInstruction, CanCreate); } }
public PexTreeBuilder(IPexLoader pexLoader) { this.pexLoader = pexLoader; }