예제 #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);
     }
 }