Esempio n. 1
0
        protected async override Task modifyItem(HsLabelValue item)
        {
            Panel_Sdrdht panel = new Panel_Sdrdht(item);

            if (item.GetValueByLabel("Htzt") == "0")
            {
                panel.UpdateComplete += new EventHandler <HsEventArgs <object> >(async(sender, e) =>
                {
                    try
                    {
                        await this.callRetrieve(false);
                    }
                    catch (Exception ex)
                    {
                        this.ShowError(ex.Message);
                    }
                });
            }
            else
            {
                panel.AuditOnly = true;
            }

            await Navigation.PushAsync(panel);
        }
Esempio n. 2
0
        protected override async Task addItem()
        {
            Panel_Sdrdht panel = new Panel_Sdrdht();

            panel.UpdateComplete += new EventHandler <HsEventArgs <object> >(async(sender, e) =>
            {
                try
                {
                    await this.callRetrieve(false);
                }
                catch (Exception ex)
                {
                    this.ShowError(ex.Message);
                }
            });

            await Navigation.PushAsync(panel);
        }