コード例 #1
0
        protected async System.Threading.Tasks.Task Form0Submit(NorthwindBlazor.Models.Northwind.Customer args)
        {
            try
            {
                var northwindCreateCustomerResult = await Northwind.CreateCustomer(customer);

                DialogService.Close(customer);
            }
            catch (Exception northwindCreateCustomerException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new Customer!");
            }
        }
コード例 #2
0
        protected async System.Threading.Tasks.Task Grid0RowSelect(NorthwindBlazor.Models.Northwind.Customer args)
        {
            var result = await DialogService.OpenAsync <EditCustomer>("Edit Customer", new Dictionary <string, object>() { { "CustomerID", args.CustomerID } });

            await InvokeAsync(() => { StateHasChanged(); });
        }
コード例 #3
0
 protected async System.Threading.Tasks.Task Load()
 {
     customer = new NorthwindBlazor.Models.Northwind.Customer();
 }
コード例 #4
0
 partial void OnCustomerUpdated(Models.Northwind.Customer item);
コード例 #5
0
 partial void OnCustomerDeleted(Models.Northwind.Customer item);
コード例 #6
0
        protected async System.Threading.Tasks.Task Load()
        {
            var northwindGetCustomerByCustomerIdResult = await Northwind.GetCustomerByCustomerId($"{CustomerID}");

            customer = northwindGetCustomerByCustomerIdResult;
        }