Exemple #1
0
        public TrayPopupViewModel(IPasteItemRepository pasteItemRepo)
        {
            _pasteItemRepo = pasteItemRepo;

            ItemClickCommand = new RelayCommand <PasteItem>(OnItemClicked);
            ReloadCommand    = new RelayCommand(Reload);

            RaisePropertyChanged(() => PasteItems);
        }
Exemple #2
0
        public PropertiesViewModel(IPasteItemRepository pasteItemRepo)
        {
            _pasteItemRepo = pasteItemRepo;

            CloseWindowCommand = new RelayCommand <Window>(CloseWindow);
            AddItemCommand     = new RelayCommand(AddTask, CanAddTask);
            RemoveItemCommand  = new RelayCommand <PasteItem>(RemoveItem);

            RaisePropertyChanged(() => PasteItems);
        }