Пример #1
0
        public UserManageViewModel(IViewContainer container, string sessionId)
        {
            Container = container;
            SessionId = sessionId;

            Provider = new UserManageProvider();
            Provider.ProfileEvent = ProfileLoadedEvent;
        }
Пример #2
0
        public UserComposeViewModel(IViewContainer container, ViewModelRelationship parent, string sessionId)
        {
            Parent = parent;
            Container = container;
            SessionId = sessionId;

            Provider = new UserManageProvider();
            Provider.ProfileEvent = ProfileLoadedEvent;
            Provider.ProfileEvent += (parent.ViewModel as UserManageViewModel).ProfileLoadedEvent;
        }
        public DispatchComposeViewModel(IViewContainer container, ViewModelRelationship parent,
            ClassroomViewModel classroomViewModel,
            CourseViewModel courseViewModel,
            string sessionId)
        {
            Parent = parent;
            refClassroomViewModel = classroomViewModel;
            refCourseViewModel = courseViewModel;
            Container = container;
            SessionId = sessionId;

            Provider = new DispatchManageProvider();
            Provider.DispatchManageEvent = DispatchManageLoadedEvent;
            Provider.DispatchManageEvent += (parent.ViewModel as DispatchManageViewModel).DispatchManageLoadedEvent;

            userMgrProvider = new UserManageProvider();
            userMgrProvider.ProfileEvent = ProfileELoadedEvent;
        }