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