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