public ProjectEditViewModel(IEventAggregator eventAggregator, IUnityContainer container, IApplicationModel applicationModel) { this.ApplicationModel = applicationModel; this.EventAggregator = eventAggregator; this.Container = container; this.ProjectStatus = new ObjectStatus(); // RegionContext is bound to the selected item in the project listbox... this.RegionContext = new ObservableObject<object>(); this.RegionContext.PropertyChanged += new PropertyChangedEventHandler(RegionContext_PropertyChanged); // watch for login changes.... this.EventAggregator.GetEvent<ApplyAuthorizationEvent>().Subscribe(ApplyAuthorization); // register Toolbar global button commmand... this.AddNewProjectCommand = new DelegateCommandReplacement<object>(AddNewProject, CanAddNewProject); UseCaseCommands.AddNewProjectCommmand.RegisterCommand(AddNewProjectCommand); // wire up local button commands.... this.SaveCommand = new DelegateCommandReplacement<object>(Save, CanSave); this.DeleteCommand = new DelegateCommandReplacement<ProjectTracker.Library.ProjectResource>(Delete); this.UndoCommand = new DelegateCommandReplacement<object>(Undo, CanUndo); this.AssignCommand = new DelegateCommandReplacement<object>(Assign, CanAssign); this.OpenResourceCommand = new DelegateCommandReplacement<int>(OpenResourceByID); }
public ProjectEditViewModel(IEventAggregator eventAggregator, IUnityContainer container, IApplicationModel applicationModel) { this.ApplicationModel = applicationModel; this.EventAggregator = eventAggregator; this.Container = container; this.ProjectStatus = new ObjectStatus(); // RegionContext is bound to the selected item in the project listbox... this.RegionContext = new ObservableObject <object>(); this.RegionContext.PropertyChanged += new PropertyChangedEventHandler(RegionContext_PropertyChanged); // watch for login changes.... this.EventAggregator.GetEvent <ApplyAuthorizationEvent>().Subscribe(ApplyAuthorization); // register Toolbar global button commmand... this.AddNewProjectCommand = new DelegateCommandReplacement <object>(AddNewProject, CanAddNewProject); UseCaseCommands.AddNewProjectCommmand.RegisterCommand(AddNewProjectCommand); // wire up local button commands.... this.SaveCommand = new DelegateCommandReplacement <object>(Save, CanSave); this.DeleteCommand = new DelegateCommandReplacement <ProjectTracker.Library.ProjectResource>(Delete); this.UndoCommand = new DelegateCommandReplacement <object>(Undo, CanUndo); this.AssignCommand = new DelegateCommandReplacement <object>(Assign, CanAssign); this.OpenResourceCommand = new DelegateCommandReplacement <int>(OpenResourceByID); }
public RolesListViewModel(IEventAggregator eventAggregator, IUnityContainer container) { this._eventAggregator = eventAggregator; this._eventAggregator.GetEvent <ApplyAuthorizationEvent>().Subscribe(ApplyAuthorization); this._container = container; this.CreateNewRoleCommand = new DelegateCommandReplacement <object>(CreateNewRole, CanCreateNewRole); UseCaseCommands.CreateNewRoleCommmand.RegisterCommand(this.CreateNewRoleCommand); this.SaveCommand = new DelegateCommandReplacement <object>(Save, CanSave); this.DeleteCommand = new DelegateCommandReplacement <Role>(Delete); this.UndoCommand = new DelegateCommandReplacement <object>(Undo, CanUndo); this.RoleListStatus = new ObjectStatus(); }
public RolesListViewModel(IEventAggregator eventAggregator, IUnityContainer container) { this._eventAggregator = eventAggregator; this._eventAggregator.GetEvent<ApplyAuthorizationEvent>().Subscribe(ApplyAuthorization); this._container = container; this.CreateNewRoleCommand = new DelegateCommandReplacement<object>(CreateNewRole, CanCreateNewRole); UseCaseCommands.CreateNewRoleCommmand.RegisterCommand(this.CreateNewRoleCommand); this.SaveCommand = new DelegateCommandReplacement<object>(Save, CanSave); this.DeleteCommand = new DelegateCommandReplacement<Role>(Delete); this.UndoCommand = new DelegateCommandReplacement<object>(Undo, CanUndo); this.RoleListStatus = new ObjectStatus(); }
public RolesToolbarViewModel() { this.CreateNewRoleCommand = new DelegateCommandReplacement <object>(CreateNewRole, CanCreateNewRole); }
public ResourceToolbarViewModel() { this.AddNewResourceCommand = new DelegateCommandReplacement <object>(AddNewResource, CanAddNewResource); }
public ResourceToolbarViewModel() { this.AddNewResourceCommand = new DelegateCommandReplacement<object>(AddNewResource, CanAddNewResource); }
public RolesToolbarViewModel() { this.CreateNewRoleCommand = new DelegateCommandReplacement<object>(CreateNewRole, CanCreateNewRole); }
public ProjectToolbarViewModel() { this.AddNewProjectCommand = new DelegateCommandReplacement<object>(AddNewProject, CanAddNewProject); }
public LoginToolbarViewModel(IEventAggregator eventAggregator) { this.LogoutCommand = new DelegateCommandReplacement <object>(Logout, CanLogout); }
public LoginToolbarViewModel(IEventAggregator eventAggregator) { this.LogoutCommand = new DelegateCommandReplacement<object>(Logout, CanLogout); }