Ejemplo n.º 1
0
        protected async override Task modifyItem(HsLabelValue item)
        {
            Panel_Sdrdxm panel = new Panel_Sdrdxm(item);

            if (item.GetValueByLabel("Xmzt") == "0" && item.GetValueByLabel("Zdr") == GetLoginData().Username)
            {
                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);
        }
Ejemplo n.º 2
0
        protected override async Task addItem()
        {
            Panel_Sdrdxm panel = new Panel_Sdrdxm();

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