Beispiel #1
0
        public async void GetFeedbackCount()
        {
            if (CrossConnectivity.Current.IsConnected)
            {


                try
                {
                    FeedbackService service = new FeedbackService();
                    var data = await service.FeedbackCount();
                    if (string.IsNullOrEmpty(data))
                    {
                        FeedbackNoLbl.Text = "0";
                        feedbaclactivity.IsEnabled = false;
                        feedbaclactivity.IsRunning = false;
                        feedbaclactivity.IsVisible = false;

                    }
                    else
                    {
                        FeedbackNoLbl.Text = data;
                        feedbaclactivity.IsEnabled = false;
                        feedbaclactivity.IsRunning = false;
                        feedbaclactivity.IsVisible = false;
                        scaleLabel2();


                    }
                }
                catch (Exception)
                {
                    await DisplayAlert("Hello" + " " + Settings.UserName, "We trust you are doing fine", "Sure");
                }
            }
            else
            {
                await DisplayAlert("Connection Timeout!", "Check your internet connection and try again", "ok");
            }
        }