Пример #1
0
 private async void BtnNo_Clicked(object sender, EventArgs e)
 {
     try
     {
         // await Navigation.PushAsync(new WeeklyPassPage(IsNewOrReNew));
         var passPage = new PassPage();
         await Navigation.PushAsync(passPage);
     }
     catch (Exception ex) { }
 }
Пример #2
0
 private async void BtnNo_Clicked(object sender, EventArgs e)
 {
     try
     {
         stlayoutYESNO.IsVisible             = false;
         slCashPaymentGeneratePass.IsVisible = false;
         var passPage = new PassPage();
         await Navigation.PushAsync(passPage);
     }
     catch (Exception ex)
     {
     }
 }
 private async void BtnNo_Clicked(object sender, EventArgs e)
 {
     try
     {
         slYESNO.IsVisible   = false;
         slNFCCard.IsVisible = false;
         var passPage = new PassPage();
         await Navigation.PushAsync(passPage);
     }
     catch (Exception ex)
     {
     }
 }
Пример #4
0
        private async void BtnPass_Clicked(object sender, EventArgs e)
        {
            try
            {
                ShowLoading(true);
                if (DeviceInternet.InternetConnected())
                {
                    BtnPass.IsVisible = false;
                    PassPage passPage = null;
                    if (!IsTodayHoliday)
                    {
                        bool doesPageExists = Navigation.NavigationStack.Any(p => p is PassPage);
                        if (!doesPageExists)
                        {
                            await Task.Run(() =>
                            {
                                StopNFCListening();
                                passPage = new PassPage();
                            });

                            await Navigation.PushAsync(passPage);
                        }
                    }
                    else
                    {
                        await DisplayAlert("Alert", "Please check Lot closed today.", "Ok");
                    }
                    BtnPass.IsVisible = true;
                }
                else
                {
                    await DisplayAlert("Alert", "Please check your Internet connection", "Ok");
                }
                ShowLoading(false);
            }
            catch (Exception ex)
            {
                BtnPass.IsVisible = true;
                ShowLoading(false);
                dal_Exceptionlog.InsertException(Convert.ToString(App.Current.Properties["apitoken"]), "Operator App", ex.Message, "MasterDetailHomePage.xaml.cs", "", "BtnPass_Clicked");
            }
        }