Example #1
0
        public MainPageViewModel(INavigation navigationService)
        {
            _pickerService = new PickerService();
            _locationService = new LocationService();
            _navigationService = navigationService;
            UserClicked = new DelegateCommand(UserClick);
            ArtistLoginClicked = new DelegateCommand(ArtistLogin);

            Task.Run(async () =>
            {
                await Initialize();
            });
        }
        public ArtistProfilePageViewModel(INavigation navigationService)
        {
            _navigationService = navigationService;
            _storageService = new StorageService();
            _locationService = new LocationService();
            _pickerHelper = new PickerService();
            _uploadService = new UploadManager();

            SaveCommand = new DelegateCommand(Save);
            CVV = LoginHelper.UserInfo.CVV;
            CardHolderName = LoginHelper.UserInfo.CardName;
            CardNumber = LoginHelper.UserInfo.CardNumber;
            ExpMonth = LoginHelper.UserInfo.CardExpirationMonth;
            ExpYear = LoginHelper.UserInfo.CardExpirationYear;
            FullName = LoginHelper.UserInfo.Name;
            UserId = LoginHelper.UserInfo.GroupId;

            Task.Run(async () =>
            {
                var status = await _naneService.GetMyActivities();
                if (status == true)
                { // NoActivity
                    IsLive = true;
                }
            });

            this.PropertyChanged += ArtistProfilePageViewModel_PropertyChanged;
        }