Exemplo n.º 1
0
        protected override async Task OnInitializedAsync()
        {
            bookService    = (IBookService)ScopedServices.GetService(typeof(IBookService));
            profileService = (IProfileService)ScopedServices.GetService(typeof(IProfileService));

            profiles = await profileService.GetAllProfilesAsync();
        }
Exemplo n.º 2
0
        protected async override Task OnInitializedAsync()
        {
            // return base.OnInitializedAsync();

            _newsService = (NewsService)ScopedServices.GetService(typeof(NewsService));
            Items        = await _newsService.GetAllVisibleNews().ToListAsync();
        }
Exemplo n.º 3
0
        protected async override Task OnInitializedAsync()
        {
            // return base.OnInitializedAsync();

            _galleryService = (GalleryService)ScopedServices.GetService(typeof(GalleryService));
            Items           = await _galleryService.GetGalleries(true).ToListAsync();
        }
        protected override void OnInitialized()
        {
            base.OnInitialized();

            // setup the repo containing the mappings
            _repo = ScopedServices.GetService(typeof(FormGeneratorComponentsRepository)) as FormGeneratorComponentsRepository;
        }
        protected override async Task OnInitializedAsync()
        {
            // return base.OnInitializedAsync();

            _service = (AnswersService)ScopedServices.GetService(typeof(AnswersService));
            Items    = await _service.GetAllAsync();
        }
Exemplo n.º 6
0
        protected async override Task OnInitializedAsync()
        {
            // return base.OnInitializedAsync();

            _service = (QuestionsService)ScopedServices.GetService(typeof(QuestionsService));
            Items    = await _service.GetAllWithObjectsAsync();
        }
        protected async override Task OnInitializedAsync()
        {
            // return base.OnInitializedAsync();

            _questionsService = (QuestionsService)ScopedServices.GetService(typeof(QuestionsService));

            // ModalIsOpen = false;
        }
Exemplo n.º 8
0
        protected override void OnInitialized()
        {
            ViewModel = (T)ScopedServices.GetService(typeof(T));

            _renderObservable  = ViewModel.Changed.Select(cev => Unit.Default);
            _disposeObservable = _renderObservable.Subscribe(_ =>
                                                             InvokeAsync(StateHasChanged)
                                                             );

            base.OnInitialized();
        }
Exemplo n.º 9
0
 protected override void OnInitialized()
 {
     base.OnInitialized();
     try
     {
         PreRenderFlag = (IPreRenderFlag)ScopedServices.GetService(typeof(IPreRenderFlag));
     }
     catch
     {
     }
 }
Exemplo n.º 10
0
        private void SetupFramework()
        {
            if (FormGeneratorOptions.FieldCssClassProvider != null)
            {
                var provider = FormGeneratorOptions.FieldCssClassProvider as VxFormCssClassProviderBase;
                // Set the options in the custom FieldCssClassProvider
                provider.FormLayoutOptions = FormLayoutOptions;

                CascadedEditContext.SetFieldCssClassProvider(provider);
            }
            if (FormLayoutOptions == null)
            {
                FormLayoutOptions = (VxFormLayoutOptions)ScopedServices.GetService(typeof(Layout.VxFormLayoutOptions));
            }
        }
 protected override void OnInitialized()
 {
     _repo = ScopedServices.GetService(typeof(FormGeneratorComponentsRepository)) as FormGeneratorComponentsRepository;
 }