public TrayPopupViewModel(IPasteItemRepository pasteItemRepo) { _pasteItemRepo = pasteItemRepo; ItemClickCommand = new RelayCommand <PasteItem>(OnItemClicked); ReloadCommand = new RelayCommand(Reload); RaisePropertyChanged(() => PasteItems); }
public PropertiesViewModel(IPasteItemRepository pasteItemRepo) { _pasteItemRepo = pasteItemRepo; CloseWindowCommand = new RelayCommand <Window>(CloseWindow); AddItemCommand = new RelayCommand(AddTask, CanAddTask); RemoveItemCommand = new RelayCommand <PasteItem>(RemoveItem); RaisePropertyChanged(() => PasteItems); }