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