public async override void ViewDidLoad()
        {
            base.ViewDidLoad();

            SubscribeSyncCompleted();

            NavItem.Title         = AppResources.Items;
            CancelBarButton.Title = AppResources.Cancel;

            TableView.RowHeight          = UITableView.AutomaticDimension;
            TableView.EstimatedRowHeight = 44;
            TableView.BackgroundColor    = ThemeHelpers.BackgroundColor;
            TableView.Source             = new TableSource(this);
            await((TableSource)TableView.Source).LoadItemsAsync();

            _alreadyLoadItemsOnce = true;

            var storageService           = ServiceContainer.Resolve <IStorageService>("storageService");
            var needsAutofillReplacement = await storageService.GetAsync <bool?>(
                Core.Constants.AutofillNeedsIdentityReplacementKey);

            if (needsAutofillReplacement.GetValueOrDefault())
            {
                await ASHelpers.ReplaceAllIdentities();
            }

            _accountSwitchingOverlayHelper  = new AccountSwitchingOverlayHelper();
            AccountSwitchingBarButton.Image = await _accountSwitchingOverlayHelper.CreateAvatarImageAsync();

            _accountSwitchingOverlayView = _accountSwitchingOverlayHelper.CreateAccountSwitchingOverlayView(OverlayView);
        }
示例#2
0
        public override async void ViewDidLoad()
        {
            base.ViewDidLoad();

            _accountSwitchingOverlayHelper  = new AccountSwitchingOverlayHelper();
            AccountSwitchingBarButton.Image = await _accountSwitchingOverlayHelper.CreateAvatarImageAsync();

            _accountSwitchingOverlayView = _accountSwitchingOverlayHelper.CreateAccountSwitchingOverlayView(OverlayView);
        }
示例#3
0
        public override async void ViewDidLoad()
        {
            base.ViewDidLoad();

            _cancelButton.TintColor = ThemeHelpers.NavBarTextColor;
            _submitButton.TintColor = ThemeHelpers.NavBarTextColor;

            _accountSwitchingOverlayHelper = new AccountSwitchingOverlayHelper();
            _accountSwitchingButton.Image  = await _accountSwitchingOverlayHelper.CreateAvatarImageAsync();

            _accountSwitchingOverlayView = _accountSwitchingOverlayHelper.CreateAccountSwitchingOverlayView(_overlayView);
        }