コード例 #1
0
        protected override async Task OnInitializedAsync()
        {
            bookService    = (IBookService)ScopedServices.GetService(typeof(IBookService));
            profileService = (IProfileService)ScopedServices.GetService(typeof(IProfileService));

            profiles = await profileService.GetAllProfilesAsync();
        }
コード例 #2
0
        protected async override Task OnInitializedAsync()
        {
            // return base.OnInitializedAsync();

            _newsService = (NewsService)ScopedServices.GetService(typeof(NewsService));
            Items        = await _newsService.GetAllVisibleNews().ToListAsync();
        }
コード例 #3
0
        protected async override Task OnInitializedAsync()
        {
            // return base.OnInitializedAsync();

            _galleryService = (GalleryService)ScopedServices.GetService(typeof(GalleryService));
            Items           = await _galleryService.GetGalleries(true).ToListAsync();
        }
コード例 #4
0
        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();
        }
コード例 #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;
        }
コード例 #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();
        }
コード例 #9
0
 protected override void OnInitialized()
 {
     base.OnInitialized();
     try
     {
         PreRenderFlag = (IPreRenderFlag)ScopedServices.GetService(typeof(IPreRenderFlag));
     }
     catch
     {
     }
 }
コード例 #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));
            }
        }
コード例 #11
0
 protected override void OnInitialized()
 {
     _repo = ScopedServices.GetService(typeof(FormGeneratorComponentsRepository)) as FormGeneratorComponentsRepository;
 }