public MainWindowViewModel(IEntryManager entryManager, IFileSwitcher fileSwitcher, IAddWindowViewModel addWindowViewModel, IEditWindowViewModel editWindowViewModel) { _entryManager = entryManager; _fileSwitcher = fileSwitcher; _addWindowViewModel = addWindowViewModel; _editWindowViewModel = editWindowViewModel; AddCommand = new RelayCommand(Add); EditCommand = new RelayCommand(Edit); DeleteCommand = new RelayCommand(Delete); CopyCommand = new RelayCommand(Copy); UpCommand = new RelayCommand(Up); DownCommand = new RelayCommand(Down); LaunchCommand = new RelayCommand(Launch); RefreshEntriesList(); SelectLastRanEntry(); }
public void BindDataContext(IAddWindowViewModel context) { DataContext = context; }