예제 #1
0
        protected async System.Threading.Tasks.Task Form0Submit(C4G.Models.C4G.Pedido args)
        {
            try
            {
                var c4GCreatePedidoResult = await C4G.CreatePedido(pedido);

                DialogService.Close(pedido);
            }
            catch (Exception c4GCreatePedidoException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new Pedido!");
            }
        }
예제 #2
0
        protected async System.Threading.Tasks.Task Load()
        {
            var c4GGetServicosResult = await C4G.GetServicos();

            getServicosResult = c4GGetServicosResult;

            var c4GGetPessoasResult = await C4G.GetPessoas();

            getPessoasResult = c4GGetPessoasResult;

            pedido = new C4G.Models.C4G.Pedido()
            {
            };
        }
예제 #3
0
        protected async System.Threading.Tasks.Task Grid0RowSelect(C4G.Models.C4G.Pedido args)
        {
            var dialogResult = await DialogService.OpenAsync <EditPedido>("Edit Pedido", new Dictionary <string, object>() { { "id_pedido", args.id_pedido } });

            await InvokeAsync(() => { StateHasChanged(); });
        }