Exemplo n.º 1
0
 public FiltersViewModel()
 {
     Menu = new FiltersMenuViewModel(this);
     AddCommand = new RelayCommand(OnAdd);
     EditCommand = new RelayCommand(OnEdit, CanEditRemove);
     DeleteCommand = new RelayCommand(OnDelete, CanEditRemove);
 }
Exemplo n.º 2
0
		public FiltersViewModel()
		{
			Menu = new FiltersMenuViewModel(this);
			AddCommand = new RelayCommand(OnAdd);
			EditCommand = new RelayCommand(OnEdit, CanEditRemove);
			DeleteCommand = new RelayCommand(OnDelete, CanEditRemove);
            RegisterShortcuts();
			SetRibbonItems();
		}