示例#1
0
        public ActivityPageViewModel()
        {
            _configurationViewModel = DependencyService.Get <AppCustomConfigurationViewModel>();

            FillUserPosts_old();

            OpenActivityDetailCommand = new Command <Post>(async(x) => await ExecuteOpenActivityDetailPage(x));
            SavePersonCommand         = new Command <Post>(async(x) => await SavePersonAction(x));
            RefreshCommand            = new Command(async() => await RefreshCommandAction());
        }
示例#2
0
        public LoginSignupViewModel()
        {
            InitialTypePages = GetPages();

            User = new User();

            _userClient    = new UserClient();
            _accountClient = new AccountClient();

            _apiResponse = new ApiResponse <User>();
            _appCustomConfigurationViewModel = DependencyService.Get <AppCustomConfigurationViewModel>();

            LoginCommand      = new Command <User>(async(loginParms) => await LoginAction(loginParms));
            CreateUserCommand = new Command <User>(async(loginParms) => await CreateUserAction(loginParms));
        }
示例#3
0
        public AccountViewModel()
        {
            _apiResponse = new ApiResponse <Account>();

            _accountClient = new AccountClient();

            _mediaProvider = new MediaProvider();
            _appCustomConfigurationViewModel = DependencyService.Get <AppCustomConfigurationViewModel>();
            _loadedConfigs = _appCustomConfigurationViewModel.LoadUserCustomConfigurationApp();

            TakePictureCommand = new Command <Account>(async(accountParms) => await TakePictureAction());
            LoadPictureCommand = new Command <Account>(async(accountParms) => await LoadPictureAction());
            SaveCommand        = new Command <Account>(async(accountParms) => await SaveAction());

            LoadAccount();
        }