Пример #1
0
        public CollaborativeInfoContentViewModel(CollaborativeInfoContentView collaborativeInfoContentView)
        {
            _bmsService    = IoC.Get <IBms>();
            _sdkService    = IoC.Get <IMeeting>();
            _lessonInfo    = IoC.Get <LessonInfo>();
            _regionManager = IoC.Get <IRegionManager>();

            LoadCommand           = DelegateCommand.FromAsyncHandler(LoadAsync);
            RefreshCommand        = DelegateCommand.FromAsyncHandler(LoadAsync);
            GotoLessonTypeCommand = new DelegateCommand(GotoLessonTypeAsync);

            Lessons = new ObservableCollection <LessonInfo>();
        }
        public CollaborativeInfoContentViewModel(CollaborativeInfoContentView collaborativeInfoContentView)
        {
            _bmsService    = DependencyResolver.Current.GetService <IBms>();
            _sdkService    = DependencyResolver.Current.GetService <ISdk>();
            _lessonInfo    = DependencyResolver.Current.GetService <LessonInfo>();
            _regionManager = DependencyResolver.Current.GetService <IRegionManager>();

            LoadCommand           = DelegateCommand.FromAsyncHandler(LoadAsync);
            RefreshCommand        = DelegateCommand.FromAsyncHandler(LoadAsync);
            GotoLessonTypeCommand = new DelegateCommand(GotoLessonTypeAsync);

            Lessons = new ObservableCollection <LessonInfo>();
        }