Esempio n. 1
0
 public RolesViewModel()
 {
     Menu = new RolesMenuViewModel(this);
     DeleteCommand = new RelayCommand(OnDelete, CanEditDelete);
     EditCommand = new RelayCommand(OnEdit, CanEditDelete);
     AddCommand = new RelayCommand(OnAdd);
 }
Esempio n. 2
0
        public RolesViewModel()
        {
			Menu = new RolesMenuViewModel(this);
			DeleteCommand = new RelayCommand(OnDelete, CanEditDelete);
            EditCommand = new RelayCommand(OnEdit, CanEditDelete);
            AddCommand = new RelayCommand(OnAdd);
            RegisterShortcuts();
			SetRibbonItems();
		}