Exemplo n.º 1
0
        public LoginViewModel(IMLearningService mLearningService)
        {
            

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


            _maxPixelDimension = 300;
            _percentQuality = 90;


            RegistrationOK = false;

            UploadFinished = false;

           
            
            
       
           

        }
Exemplo n.º 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;
        }
Exemplo n.º 3
0
        public CreateAccountViewModel(IMLearningService mLearningService)
        {
            _mLearningService = mLearningService;
            ClearProperties();

            SelectedUserType = UserType.Consumer;
        }
Exemplo n.º 4
0
        public CreateInstitutionViewModel(IMLearningService mlearningService)
        {
            _mLearningService = mlearningService;

            InstitutionsList = new ObservableCollection <Institution>();
            LoadInstitutions();
        }
Exemplo n.º 5
0
        public CreateInstitutionViewModel(IMLearningService mlearningService)
        {
            _mLearningService = mlearningService;

            InstitutionsList = new ObservableCollection<Institution>();
            LoadInstitutions();
        }
Exemplo n.º 6
0
        public CreateAccountViewModel(IMLearningService mLearningService)
        {
            _mLearningService = mLearningService;
            ClearProperties();

            SelectedUserType = UserType.Consumer;
        }
Exemplo n.º 7
0
        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?;            
        }
Exemplo n.º 8
0
        public static IMLearningService GetService()
        {
            if (repositoryService == null)
            {
                repositoryService = new WAMSRepositoryService();
            }

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

            return mlearningService;
        }
Exemplo n.º 9
0
        public static IMLearningService GetService()
        {
            if (repositoryService == null)
            {
                repositoryService = new WAMSRepositoryService();
            }

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

            return(mlearningService);
        }
Exemplo n.º 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);
            
        }
Exemplo n.º 11
0
        public LoginViewModel(IMLearningService mLearningService)
        {
            _mLearningService = mLearningService;


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


            _maxPixelDimension = 300;
            _percentQuality    = 90;


            RegistrationOK = false;

            UploadFinished = false;
        }
Exemplo n.º 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;
        }
Exemplo n.º 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);
        }
Exemplo n.º 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;
        }
Exemplo n.º 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;

           

            
       
           

        }
Exemplo n.º 16
0
 public LOViewModel(IMLearningService mlearningService)
 {
     _mLearningService = mlearningService;
 }
 public RegistrationViewModel(IMLearningService mlearningService)
 {
     _mLearningService = mlearningService;
     UpdateCircleList(FilterCircleName);
 }
Exemplo n.º 18
0
 public ManageCirclesViewModel(IMLearningService mlearningService)
 {
     _mLearningService = mlearningService;
 }
Exemplo n.º 19
0
 public PublisherMainViewModel(IMLearningService mlearningService)
 {
     _mLearningService = mlearningService;
 }
Exemplo n.º 20
0
 public ManageCirclesViewModel(IMLearningService mlearningService)
 {
     _mLearningService = mlearningService;
 }
Exemplo n.º 21
0
 public HeadMainViewModel(IMLearningService mlearningService)
 {
     _mLearningService = mlearningService;
 }
 public ManagePublishersViewModel(IMLearningService mlearningService)
 {
     _mLearningService = mlearningService;
 }
Exemplo n.º 23
0
 public RegistrationViewModel(IMLearningService mlearningService)
 {
     _mLearningService = mlearningService;
     UpdateCircleList(FilterCircleName);
 }
Exemplo n.º 24
0
        public LoginController()            
        {

            _mLearningService = ServiceManager.GetService();
        }
Exemplo n.º 25
0
        public PublisherMainViewModel(IMLearningService mlearningService)
        {
            _mLearningService = mlearningService;

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


		}
Exemplo n.º 34
0
 public ConsumerController():base()
 {
     IRepositoryService repo = new WAMSRepositoryService();
      ml = new MLearningAzureService(repo);
 }