コード例 #1
0
 public void Refresh()
 {
     leftMenu.MarkAsRequireRender();
     productDropDown.MarkAsRequireRender();
     StateHasChanged();
     LoadingService.CloseFullScreenLoading();
 }
コード例 #2
0
        protected async Task WithFullScreenLoading(Func <Task> action)
        {
            LoadingService.Show(new LoadingOption()
            {
                Background = "rgba(0, 0, 0, 0.1)",
                Text       = "",
                IconClass  = "el-icon-loading"
            });
            await action();

            LoadingService.CloseFullScreenLoading();
        }
コード例 #3
0
        internal async Task CurrentPageChangedAsync(int page)
        {
            currentPage = page;
            if (CurrentPageChanged.HasDelegate)
            {
                RequireRender = true;
                LoadingService.Show();
                await CurrentPageChanged.InvokeAsync(page);

                LoadingService.CloseFullScreenLoading();
            }
        }
コード例 #4
0
        public async Task WithFullScreenLoading(Func <Task <BaseResponse> > action, Action <BaseResponse> callback = null)
        {
            LoadingService.Show(new LoadingOption()
            {
                Background = "rgba(0, 0, 0, 0.1)",
                Text       = "",
                IconClass  = "el-icon-loading"
            });
            var result = await action();

            callback?.Invoke(result);
            LoadingService.CloseFullScreenLoading();
        }