Example #1
0
        public LoginViewModel(IMLearningService mLearningService)
        {
            

                _mLearningService = mLearningService;
            
            
          
            Username = "******";
            Password = "******";


            _maxPixelDimension = 300;
            _percentQuality = 90;


            RegistrationOK = false;

            UploadFinished = false;

           
            
            
       
           

        }
Example #2
0
        public MainViewModel(IMLearningService mlearningService)
        {
            _mLearningService      = mlearningService;
            _locover_manager       = new IncrementalDownload();
            _user_image_manager    = new IncrementalDownload();
            _post_image_manager    = new IncrementalDownload();
            _comment_image_manager = new IncrementalDownload();

            //async call
            LoadUserInfo();

            UserID = SessionService.GetUserId();

            CircleID            = Constants.NoSelection;
            CurrentLOIDSelected = Constants.NoSelection;
            LoadCircles();

            if (this.CirclesList.Count > 0)
            {
                LoadLearningObjects(0);
            }

            NotificationHandler.Properties.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(Global_PropertyChanged);

            PropertyChanged += MainViewModel_PropertyChanged;
        }
Example #3
0
        public CreateAccountViewModel(IMLearningService mLearningService)
        {
            _mLearningService = mLearningService;
            ClearProperties();

            SelectedUserType = UserType.Consumer;
        }
Example #4
0
        public CreateInstitutionViewModel(IMLearningService mlearningService)
        {
            _mLearningService = mlearningService;

            InstitutionsList = new ObservableCollection <Institution>();
            LoadInstitutions();
        }
        public CreateInstitutionViewModel(IMLearningService mlearningService)
        {
            _mLearningService = mlearningService;

            InstitutionsList = new ObservableCollection<Institution>();
            LoadInstitutions();
        }
Example #6
0
        public CreateAccountViewModel(IMLearningService mLearningService)
        {
            _mLearningService = mLearningService;
            ClearProperties();

            SelectedUserType = UserType.Consumer;
        }
        public MLController(): base()
        {
            _mLearningService = ServiceManager.GetService();

            InstitutionID = System.Web.HttpContext.Current.Session["InstitutionID"] as int? ?? default(int);
            UserID = System.Web.HttpContext.Current.Session["UserID"] as int? ?? default(int);
            PublisherID = System.Web.HttpContext.Current.Session["PublisherID"] as int? ?? default(int);
            CircleID = System.Web.HttpContext.Current.Session["CircleID"] as int? ?? default(int);
            LOID = System.Web.HttpContext.Current.Session["LOID"] as int? ?? default(int);
            PageID = System.Web.HttpContext.Current.Session["PageID"] as int? ?? default(int);
            QuizID = System.Web.HttpContext.Current.Session["QuizID"] as int? ?? default(int);
            QuestionID = System.Web.HttpContext.Current.Session["QuestionID"] as int? ?? default(int);
            userType = System.Web.HttpContext.Current.Session["UserType"] as UserType?;            
        }
Example #8
0
        public static IMLearningService GetService()
        {
            if (repositoryService == null)
            {
                repositoryService = new WAMSRepositoryService();
            }

            if (mlearningService == null)
            {
                mlearningService = new MLearningAzureService(repositoryService);
            }

            return mlearningService;
        }
Example #9
0
        public static IMLearningService GetService()
        {
            if (repositoryService == null)
            {
                repositoryService = new WAMSRepositoryService();
            }

            if (mlearningService == null)
            {
                mlearningService = new MLearningAzureService(repositoryService);
            }

            return(mlearningService);
        }
Example #10
0
        static async void AsyncMain(string[] args)
        {
            IRepositoryService repositoryService = new WAMSRepositoryService();
            _mLearningService = new MLearningAzureService(repositoryService);

            Console.WriteLine("Hello world!");

            //await LOcomments();
            //await CirclePosts();
            //await LOquizzes();
            await CreateLearningObjects(951);

            Console.ReadKey(true);
            
        }
Example #11
0
        public LoginViewModel(IMLearningService mLearningService)
        {
            _mLearningService = mLearningService;


            Username = "******";
            Password = "******";


            _maxPixelDimension = 300;
            _percentQuality    = 90;


            RegistrationOK = false;

            UploadFinished = false;
        }
Example #12
0
        public LoginViewModel(IMLearningService mLearningService)
        {
            _mLearningService = mLearningService;

            IUserInfo info = Mvx.Resolve <IUserInfo>();

            Username = info.user();
            Password = info.pass();


            _maxPixelDimension = 300;
            _percentQuality    = 90;


            RegistrationOK = false;

            UploadFinished = false;
        }
Example #13
0
        static async public void Login()
        {
            Console.WriteLine("Hasta aca llegue");
            IMLearningService _mLearningService = ServiceManager.GetService();

            //var com = new LoginViewModel(_mLearningService);
            //com.Name = "aocsa";
            Console.WriteLine("Hasta aca llegue222");
            //com.Password = "******";
            string username = "******";

            string password = "******";

            User user = new User {
                username = username, password = password
            };

            var result = await _mLearningService.ValidateLogin <User>(user, u => u.password == user.password && u.username == user.username, u => u.id, u => u.type);

            Console.WriteLine("ACCEDIENDO A LOS SERVICIOS = " + result.successful);
        }
Example #14
0
        public MainViewModel(IMLearningService mlearningService)
        {
            _mLearningService = mlearningService;
            _locover_manager = new IncrementalDownload();
            _user_image_manager = new IncrementalDownload();
            _post_image_manager= new IncrementalDownload();
            _comment_image_manager = new IncrementalDownload(); 

            //async call
            LoadUserInfo();

            UserID = SessionService.GetUserId();

            CircleID = CoolBeans.Configure.Constants.NoSelection;
            CurrentLOIDSelected = CoolBeans.Configure.Constants.NoSelection;
            LoadCircles();


            NotificationHandler.Properties.PropertyChanged += new System.ComponentModel.PropertyChangedEventHandler(Global_PropertyChanged);

            PropertyChanged += MainViewModel_PropertyChanged;
        }
Example #15
0
        public LoginViewModel(IMLearningService mLearningService)
        {
            _mLearningService = mLearningService;

			IUserInfo info = Mvx.Resolve<IUserInfo>();
			Username = info.user();
			Password = info.pass();


            _maxPixelDimension = 300;
            _percentQuality = 90;


            RegistrationOK = false;

            UploadFinished = false;

           

            
       
           

        }
Example #16
0
 public LOViewModel(IMLearningService mlearningService)
 {
     _mLearningService = mlearningService;
 }
 public RegistrationViewModel(IMLearningService mlearningService)
 {
     _mLearningService = mlearningService;
     UpdateCircleList(FilterCircleName);
 }
 public ManageCirclesViewModel(IMLearningService mlearningService)
 {
     _mLearningService = mlearningService;
 }
Example #19
0
 public PublisherMainViewModel(IMLearningService mlearningService)
 {
     _mLearningService = mlearningService;
 }
Example #20
0
 public ManageCirclesViewModel(IMLearningService mlearningService)
 {
     _mLearningService = mlearningService;
 }
Example #21
0
 public HeadMainViewModel(IMLearningService mlearningService)
 {
     _mLearningService = mlearningService;
 }
 public ManagePublishersViewModel(IMLearningService mlearningService)
 {
     _mLearningService = mlearningService;
 }
Example #23
0
 public RegistrationViewModel(IMLearningService mlearningService)
 {
     _mLearningService = mlearningService;
     UpdateCircleList(FilterCircleName);
 }
        public LoginController()            
        {

            _mLearningService = ServiceManager.GetService();
        }
Example #25
0
        public PublisherMainViewModel(IMLearningService mlearningService)
        {
            _mLearningService = mlearningService;

            
        }
Example #26
0
 public ManagePublishersViewModel(IMLearningService mlearningService)
 {
     _mLearningService = mlearningService;
 }
 public RegisterViewModel(IMLearningService mLearningService)
 {
     _mLearningService = mLearningService;
 }
 public AdminController() : base()
 {
     _mLearningService = ServiceManager.GetService();
 }
Example #29
0
 public HeadMainViewModel(IMLearningService mlearningService)
 {
     _mLearningService = mlearningService;
 }
Example #30
0
 public AuthViewModel(IMLearningService mLearningService)
 {
     _mLearningService = mLearningService;
 }
Example #31
0
		public RegisterViewModel(IMLearningService mLearningService)
		{
			_mLearningService = mLearningService;
		}
Example #32
0
 public AuthViewModel(IMLearningService mLearningService)
 {
     _mLearningService = mLearningService;
 }
Example #33
0
		public LOViewModel(IMLearningService mlearningService)
		{
			_mLearningService = mlearningService;


		}
 public ConsumerController():base()
 {
     IRepositoryService repo = new WAMSRepositoryService();
      ml = new MLearningAzureService(repo);
 }