Beispiel #1
0
        protected async override Task modifyItem(HsLabelValue item)
        {
            Panel_Sdrdhthkjl panel = new Panel_Sdrdhthkjl(item);

            if (item.GetValueByLabel("Jlzt") == "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);
        }
Beispiel #2
0
        protected override async Task addItem()
        {
            Panel_Sdrdhthkjl panel = new Panel_Sdrdhthkjl();

            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);
        }