App.Xaml.Cs:
After Partial Class
public static bool isFifthPage = false;
-----------------------------------------
MEdication page Button Click:
btnMedicationNext.Clicked += delegate
{
if (App.isFifthPage)
{
App.isFifthPage = false;
Navigation.PopModalAsync();
}
else
{
string strMedicationName = "";
foreach (var eachItem in objMEdicationWithDosage)
{
-------------------------------------------------------------
Last Page Button Click:
var startTap = new TapGestureRecognizer();
startTap.Tapped += (s, e) =>
{
App.isFifthPage = true;
Navigation.PushModalAsync(new MedicationPage());
};
After Partial Class
public static bool isFifthPage = false;
-----------------------------------------
MEdication page Button Click:
btnMedicationNext.Clicked += delegate
{
if (App.isFifthPage)
{
App.isFifthPage = false;
Navigation.PopModalAsync();
}
else
{
string strMedicationName = "";
foreach (var eachItem in objMEdicationWithDosage)
{
-------------------------------------------------------------
Last Page Button Click:
var startTap = new TapGestureRecognizer();
startTap.Tapped += (s, e) =>
{
App.isFifthPage = true;
Navigation.PushModalAsync(new MedicationPage());
};
No comments:
Post a Comment