Example #1
0
        protected async System.Threading.Tasks.Task Form0Submit(C4G.Models.C4G.Produto args)
        {
            try
            {
                var c4GCreateProdutoResult = await C4G.CreateProduto(produto);

                DialogService.Close(produto);
            }
            catch (Exception c4GCreateProdutoException)
            {
                NotificationService.Notify(NotificationSeverity.Error, $"Error", $"Unable to create new Produto!");
            }
        }
Example #2
0
        protected async System.Threading.Tasks.Task Load()
        {
            var c4GGetLaboratoriosResult = await C4G.GetLaboratorios();

            getLaboratoriosResult = c4GGetLaboratoriosResult;

            var c4GGetRecursosResult = await C4G.GetRecursos();

            getRecursosResult = c4GGetRecursosResult;

            produto = new C4G.Models.C4G.Produto()
            {
            };
        }
        protected async System.Threading.Tasks.Task Grid0RowSelect(C4G.Models.C4G.Produto args)
        {
            var dialogResult = await DialogService.OpenAsync <EditProduto>("Edit Produto", new Dictionary <string, object>() { { "id_recursos", args.id_recursos } });

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