Пример #1
0
        public async Task OnSubmitHandler()
        {
            if (!IsValidationEnabled)
            {
                return;
            }

            IsValid = editContext.Validate();
            if (IsValidatedAndValid)
            {
                try
                {
                    await OnTagSelectedEvent.InvokeAsync(Model);
                }
                catch (Exception ex)
                {
                    Logger.LogErrorCsro(ex);
                    await CsroDialogService.ShowError("Error", $"Detail error: {ex.Message}");
                }
                finally
                {
                    HideLoading();
                }
            }
        }
Пример #2
0
 public async Task OncmdbReferenceChanged(string value)
 {
     if (value != null)
     {
         Model.cmdbReference = value;
         await OnTagSelectedEvent.InvokeAsync(Model);
     }
 }
Пример #3
0
 public async Task OnopEnvironmentChanged(string value)
 {
     if (value != null)
     {
         Model.opEnvironment = value;
         await OnTagSelectedEvent.InvokeAsync(Model);
     }
 }