Example #1
0
        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();
        }
Example #2
0
 public void BindDataContext(IAddWindowViewModel context)
 {
     DataContext = context;
 }