async void OnImageMainExit(object sender, System.EventArgs args) { if (CrossConnectivity.Current.IsConnected) { if (App.RePagemain == true) { App.RePagemain = false; await Navigation.PushAsync(new MainPage()); } else { var answer = await DisplayAlert(Utils.getLabel(LabelConstants.MAIN_PAGE_LOGOUT), Utils.getLabel(LabelConstants.MAIN_PAGE_CONFIRMLOGOUT), "Yes", "No"); if (answer == true) { UIReturn Chklogout = LoginController.getInstance().LogutMember(); if (!Chklogout.isSuccess) { App.timercheck = false; CountstartMain = false; await DisplayAlert(App.AppicationName, Chklogout.getDescription(), "Close"); } else { App.timercheck = false; CountstartMain = false; //SessionModel.bookingQ = null; Navigation.InsertPageBefore(new LoginPage(), this); await Navigation.PopAsync(); } } } } else { App.RePagemain = false; await DisplayAlert(App.AppicationName, App.NoInternet, "Close"); } }