public LoginViewModel(IMLearningService mLearningService) { _mLearningService = mLearningService; Username = "******"; Password = "******"; _maxPixelDimension = 300; _percentQuality = 90; RegistrationOK = false; UploadFinished = false; }
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; }
public CreateAccountViewModel(IMLearningService mLearningService) { _mLearningService = mLearningService; ClearProperties(); SelectedUserType = UserType.Consumer; }
public CreateInstitutionViewModel(IMLearningService mlearningService) { _mLearningService = mlearningService; InstitutionsList = new ObservableCollection <Institution>(); LoadInstitutions(); }
public CreateInstitutionViewModel(IMLearningService mlearningService) { _mLearningService = mlearningService; InstitutionsList = new ObservableCollection<Institution>(); LoadInstitutions(); }
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?; }
public static IMLearningService GetService() { if (repositoryService == null) { repositoryService = new WAMSRepositoryService(); } if (mlearningService == null) { mlearningService = new MLearningAzureService(repositoryService); } return mlearningService; }
public static IMLearningService GetService() { if (repositoryService == null) { repositoryService = new WAMSRepositoryService(); } if (mlearningService == null) { mlearningService = new MLearningAzureService(repositoryService); } return(mlearningService); }
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); }
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; }
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); }
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; }
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; }
public LOViewModel(IMLearningService mlearningService) { _mLearningService = mlearningService; }
public RegistrationViewModel(IMLearningService mlearningService) { _mLearningService = mlearningService; UpdateCircleList(FilterCircleName); }
public ManageCirclesViewModel(IMLearningService mlearningService) { _mLearningService = mlearningService; }
public PublisherMainViewModel(IMLearningService mlearningService) { _mLearningService = mlearningService; }
public HeadMainViewModel(IMLearningService mlearningService) { _mLearningService = mlearningService; }
public ManagePublishersViewModel(IMLearningService mlearningService) { _mLearningService = mlearningService; }
public LoginController() { _mLearningService = ServiceManager.GetService(); }
public RegisterViewModel(IMLearningService mLearningService) { _mLearningService = mLearningService; }
public AdminController() : base() { _mLearningService = ServiceManager.GetService(); }
public AuthViewModel(IMLearningService mLearningService) { _mLearningService = mLearningService; }
public ConsumerController():base() { IRepositoryService repo = new WAMSRepositoryService(); ml = new MLearningAzureService(repo); }