コード例 #1
0
        protected async System.Threading.Tasks.Task Load()
        {
            var northwindGetOrdersResult = await Northwind.GetOrders();

            getOrdersResult = northwindGetOrdersResult;

            var northwindGetProductsResult = await Northwind.GetProducts();

            getProductsResult = northwindGetProductsResult;

            orderdetail = new NorthwindBlazor.Models.Northwind.OrderDetail();
        }
コード例 #2
0
        protected async System.Threading.Tasks.Task Form0Submit(NorthwindBlazor.Models.Northwind.OrderDetail args)
        {
            try
            {
                var northwindUpdateOrderDetailResult = await Northwind.UpdateOrderDetail(int.Parse($"{OrderID}"), int.Parse($"{ProductID}"), orderdetail);

                DialogService.Close(orderdetail);
            }
            catch (Exception northwindUpdateOrderDetailException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to update OrderDetail");
            }
        }
コード例 #3
0
        protected async System.Threading.Tasks.Task Form0Submit(NorthwindBlazor.Models.Northwind.OrderDetail args)
        {
            try
            {
                var northwindCreateOrderDetailResult = await Northwind.CreateOrderDetail(orderdetail);

                DialogService.Close(orderdetail);
            }
            catch (Exception northwindCreateOrderDetailException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new OrderDetail!");
            }
        }
コード例 #4
0
        protected async System.Threading.Tasks.Task Grid0RowSelect(NorthwindBlazor.Models.Northwind.OrderDetail args)
        {
            var result = await DialogService.OpenAsync <EditOrderDetail>("Edit Order Detail", new Dictionary <string, object>() { { "OrderID", args.OrderID }, { "ProductID", args.ProductID } });

            await InvokeAsync(() => { StateHasChanged(); });
        }
コード例 #5
0
 partial void OnOrderDetailUpdated(Models.Northwind.OrderDetail item);