private async void Cell_Tapped(object sender, EventArgs e) { var mth = new Methodlar(); ContentPage p = new ContentPage(); if (g.signIn) { ImageCell cell = new ImageCell(); cell = (ImageCell)sender; if (cell.Text == "ONLINE REPORTING") { ServiceManager sm = new ServiceManager(); StackLayout lyt = new StackLayout(); lyt.BackgroundColor = Color.White; p = mth.showProgress("Get Report List...", this); try { List <MyData> sonuc = await sm.MenuList(g.user.sesid, "menu"); lyt = await mth.orMenuList(sonuc); } catch (Exception) { mth.hideProgress(p); throw; } finally { mth.hideProgress(p); DashPage dsh = new DashPage(g, lyt, cell.Text); await this.Navigation.PushModalAsync(dsh); } } } else { await this.DisplayAlert("Fail", "Sign in failed", "OK"); } }