public GroupInfoViewModel( IValidationObjectFactory validationObjectFactory, IGroupsService groupsService, IGroupingFactory groupingFactory, IStateService stateService) { _validationObjectFactory = validationObjectFactory; _groupsService = groupsService; _groupingFactory = groupingFactory; _stateService = stateService; AppBackgroundImage = GlobalSettings.Instance.UserProfile.AppBackgroundImage?.Url; ActionBarViewModel = ViewModelLocator.Resolve <ModeActionBarViewModel>(); ActionBarViewModel.InitializeAsync(this); ((ModeActionBarViewModel)ActionBarViewModel).IsModesAvailable = false; AddMemberToGroupPopupViewModel = ViewModelLocator.Resolve <AddMemberToGroupPopupViewModel>(); AddMemberToGroupPopupViewModel.InitializeAsync(this); RefreshCommand = new Command(async() => { IsRefreshing = true; InitializeGroupDTO(TargetGroup.Id); await Task.Delay(AppConsts.DELAY_STUB); IsRefreshing = false; }); }
public LoggedContentPageViewModel() { ActionBarViewModel = ViewModelLocator.Resolve <ModeActionBarViewModel>(); ((ModeActionBarViewModel)ActionBarViewModel).IsModesAvailable = false; ActionBarViewModel.InitializeAsync(this); }
public TeamsInfoViewModel( ITeamService teamService, ITeamFactory teamFactory, IStateService stateService) { _teamFactory = teamFactory; _teamService = teamService; _stateService = stateService; ActionBarViewModel = ViewModelLocator.Resolve <ModeActionBarViewModel>(); ActionBarViewModel.InitializeAsync(this); ((ModeActionBarViewModel)ActionBarViewModel).IsModesAvailable = false; AddMemberToTeamPopupViewModel = ViewModelLocator.Resolve <AddMemberToTeamPopupViewModel>(); AddMemberToTeamPopupViewModel.InitializeAsync(this); AppBackgroundImage = GlobalSettings.Instance.UserProfile.AppBackgroundImage?.Url; RefreshCommand = new Command(async() => { IsRefreshing = true; await GetTeamByIdAsync(TargetTeam.Id); await GetTeamRequestsAsync(TargetTeam); await Task.Delay(AppConsts.DELAY_STUB); IsRefreshing = false; }); }
public ProfileInfoViewModel( IContentViewModelFactory contentViewModelFactory, IProfileService profileService, IFriendService friendService, IPostService postService, IStateService stateService, IMediaFactory mediaFactory) { _postService = postService; _friendService = friendService; _profileService = profileService; _contentViewModelFactory = contentViewModelFactory; _stateService = stateService; _mediaFactory = mediaFactory; ActionBarViewModel = ViewModelLocator.Resolve <ModeActionBarViewModel>(); ActionBarViewModel.InitializeAsync(this); ((ModeActionBarViewModel)ActionBarViewModel).IsModesAvailable = false; RefreshCommand = new Command(async() => { IsRefreshing = true; ResolveProfile(Profile); await Task.Delay(500); IsRefreshing = false; }); }
public InviteExternalMembersViewModel( IValidationObjectFactory validationObjectFactory) { _validationObjectFactory = validationObjectFactory; ActionBarViewModel = ViewModelLocator.Resolve <ExternalInviteActionBarViewModel>(); ActionBarViewModel.InitializeAsync(this); ResetInputForm(); }
private async void OnPostEventsAttachMediaTotheNewPostOffer(object sender, AttachExternalMediaToNewPostArgs e) { try { await ActionBarViewModel.InitializeAsync(e); await NavigationService.NavigateToAsync <MainAppViewModel>(); } catch (Exception exc) { Crashes.TrackError(exc); await DialogService.ToastAsync(_ATTACH_EXTERNAL_MEDIA_TO_NEW_POST_WARNING); } }
public override Task InitializeAsync(object navigationData) { if (navigationData is SearchByImageArgs) { AnalysePhotoAsync(); } if (navigationData is DriveAuto driveAuto) { DriveAutoDetails?.Add(driveAuto); HasResult = true; } ActionBarViewModel?.InitializeAsync(navigationData); return(base.InitializeAsync(navigationData)); }
public EventManagingViewModelBase( IValidationObjectFactory validationObjectFactory, ITeamActionsManagmentDataItems teamActionsManagmentDataItems, ISchedulingService schedulingService) { _validationObjectFactory = validationObjectFactory; _teamActionsManagmentDataItems = teamActionsManagmentDataItems; _schedulingService = schedulingService; AppBackgroundImage = GlobalSettings.Instance.UserProfile.AppBackgroundImage?.Url; ActionBarViewModel = ViewModelLocator.Resolve <ModeActionBarViewModel>(); ActionBarViewModel.InitializeAsync(this); ((ModeActionBarViewModel)ActionBarViewModel).IsModesAvailable = false; AddLocationPopupViewModel = ViewModelLocator.Resolve <AddLocationPopupViewModel>(); AddLocationPopupViewModel.InitializeAsync(this); Repeatings = _teamActionsManagmentDataItems.BuildRepeatingsDataItems(); ResetValidationObjects(); }
public ChildSettingsUpdateViewModel( IValidationObjectFactory validationObjectFactory, IProfileService profileService, IProfileFactory profileFactory) { _validationObjectFactory = validationObjectFactory; _profileService = profileService; _profileFactory = profileFactory; ActionBarViewModel = ViewModelLocator.Resolve <ModeActionBarViewModel>(); ActionBarViewModel.InitializeAsync(this); ((ModeActionBarViewModel)ActionBarViewModel).IsModesAvailable = false; PickAvatarPopupViewModel = ViewModelLocator.Resolve <PickChildAvatarPopupViewModel>(); PickAvatarPopupViewModel.InitializeAsync(this); AppBackgroundImage = GlobalSettings.Instance.UserProfile.AppBackgroundImage?.Url; IsPullToRefreshEnabled = false; ResetValidationObjects(); }
public PolandDriveAutoDetailsViewModel() { ActionBarViewModel = DependencyLocator.Resolve <CommonActionBarViewModel>(); ActionBarViewModel.InitializeAsync(this); Year.Spans.Add(BuildHeaderSpan(nameof(AppStrings.YearOfCreation))); Year.Spans.Add(BuildValueSpan()); Vin.Spans.Add(BuildHeaderSpan(nameof(AppStrings.VinUppercase))); Vin.Spans.Add(BuildValueSpan()); VehicleTechnicalInspection.Spans.Add(BuildHeaderSpan(nameof(AppStrings.VehicleTechnicalInspection))); VehicleTechnicalInspection.Spans.Add(BuildValueSpan()); LastOdometrData.Spans.Add(BuildHeaderSpan(nameof(AppStrings.LastRecordedOdometerReading))); LastOdometrData.Spans.Add(BuildValueSpan()); RegistrationStatus.Spans.Add(BuildHeaderSpan(nameof(AppStrings.RegistrationStatus))); RegistrationStatus.Spans.Add(BuildValueSpan()); EngineCapacity.Spans.Add(BuildHeaderSpan(nameof(AppStrings.EngineCapacity))); EngineCapacity.Spans.Add(BuildValueSpan()); EnginePower.Spans.Add(BuildHeaderSpan(nameof(AppStrings.EnginePower))); EnginePower.Spans.Add(BuildValueSpan()); FuelType.Spans.Add(BuildHeaderSpan(nameof(AppStrings.FuelType))); FuelType.Spans.Add(BuildValueSpan()); TotalCapacity.Spans.Add(BuildHeaderSpan(nameof(AppStrings.TotalСapacity))); TotalCapacity.Spans.Add(BuildValueSpan()); NumberOfSeats.Spans.Add(BuildHeaderSpan(nameof(AppStrings.NumberOfSeats))); NumberOfSeats.Spans.Add(BuildValueSpan()); CurbWeight.Spans.Add(BuildHeaderSpan(nameof(AppStrings.CurbWeight))); CurbWeight.Spans.Add(BuildValueSpan()); MaximumLadenMassOfBrakedTrailer.Spans.Add(BuildHeaderSpan(nameof(AppStrings.MaximumLadenMassOfBrakedTrailer))); MaximumLadenMassOfBrakedTrailer.Spans.Add(BuildValueSpan()); MaximumLadenMassOfUnbrakedTrailer.Spans.Add(BuildHeaderSpan(nameof(AppStrings.MaximumLadenMassOfUnbrakedTrailer))); MaximumLadenMassOfUnbrakedTrailer.Spans.Add(BuildValueSpan()); MaximumPermissibleTowableMass.Spans.Add(BuildHeaderSpan(nameof(AppStrings.MaximumPermissibleTowableMass))); MaximumPermissibleTowableMass.Spans.Add(BuildValueSpan()); NumberOfAxles.Spans.Add(BuildHeaderSpan(nameof(AppStrings.NumberOfAxles))); NumberOfAxles.Spans.Add(BuildValueSpan()); DateСurrentVehicleRegistrationCertificateIssued.Spans.Add(BuildHeaderSpan(nameof(AppStrings.DateСurrentVehicleRegistrationCertificateIssued))); DateСurrentVehicleRegistrationCertificateIssued.Spans.Add(BuildValueSpan()); DateVehicleRecordDocumentIssued.Spans.Add(BuildHeaderSpan(nameof(AppStrings.DateVehicleRecordDocumentIssued))); DateVehicleRecordDocumentIssued.Spans.Add(BuildValueSpan()); CivilLiabilityInsurance.Spans.Add(BuildHeaderSpan(nameof(AppStrings.CivilLiabilityInsurance))); CivilLiabilityInsurance.Spans.Add(BuildValueSpan()); Type.Spans.Add(BuildHeaderSpan(nameof(AppStrings.Type))); Type.Spans.Add(BuildValueSpan()); Number.Spans.Add(BuildHeaderSpan(nameof(AppStrings.Number))); Number.Spans.Add(BuildValueSpan()); }