예제 #1
0
        protected async Task FilesReadyForContent(IMatFileUploadEntry[] files)
        {
            ErrorMessage = await GridConfig.FilesReadyForContent(files);

            ShowTitleContextMenu = false;
            ShowUploadSubMenu    = false;
            if (!string.IsNullOrEmpty(ErrorMessage))
            {
                JsHelper jsHelper = new JsHelper();
                await jsHelper.ShowErrorAsync(jSRuntime, ErrorMessage);

                ErrorMessage = "";
            }
        }
예제 #2
0
        protected async Task Test()
        {
            ShowTitleContextMenu = false;
            JsHelper jsHelper = new JsHelper();

            try
            {
                await GridConfig.TestAsync();

                await jsHelper.ShowSucsessAsync(jSRuntime, "It's working!");
            }
            catch (Exception ex)
            {
                await jsHelper.ShowErrorAsync(jSRuntime, ex.Message);
            }
        }