Exemple #1
0
        public sealed override async void Init(object obj)
        {
            _model = new MenuPageViewModel(Navigation)
            {
                Title            = TextResources.x4ever,
                Subtitle         = TextResources.x4ever,
                Icon             = TextResources.icon_menu,
                Root             = (RootPage)obj,
                MenuBindCallback = MenuBind
            };
            BindingContext = _model;
            _helper        = DependencyService.Get <IHelper>();
            await _model.GetMenuData();

            await _model.GetProfilePhoto();

            _metaPivotService = DependencyService.Get <IMetaPivotService>();
            _media            = DependencyService.Get <Globals.IMedia>();
        }
        private async void Init(object obj)
        {
            _devicePermissionServices = DependencyService.Get <IDevicePermissionServices>();
            _model = new MenuPageViewModel(Navigation)
            {
                Title            = TextResources.XChallenge,
                Subtitle         = TextResources.XChallenge,
                Icon             = TextResources.icon_menu,
                Root             = (RootPage)obj,
                MenuBindCallback = MenuBind
            };
            BindingContext = this._model;
            _helper        = DependencyService.Get <IHelper>();
            await _model.GetMenuData();

            await _model.GetProfilePhoto();

            _metaPivotService = DependencyService.Get <IMetaPivotService>();
            _media            = DependencyService.Get <Globals.IMedia>();
        }