Пример #1
0
        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;
            });
        }
Пример #2
0
 public DateDifService(
     IDateDifReportBuilder reportBuilder,
     IStatisticStorage storage,
     IGroupingFactory groupingFactory)
 {
     this.reportBuilder   = reportBuilder;
     this.storage         = storage;
     this.groupingFactory = groupingFactory;
 }