Esempio n. 1
0
        void CheckInYap(string statuss, string startprogresstext, string alert)
        {
            ShowLoading.Show(this, startprogresstext);
            new System.Threading.Thread(new System.Threading.ThreadStart(delegate
            {
                WebService webService = new WebService();

                CheckInIslemiIcinDataModel checkInIslemiIcinDataModel = new CheckInIslemiIcinDataModel()
                {
                    locationId = Convert.ToInt32(SecilenLokasyonn.LokID),
                    status     = statuss
                };
                var jsonstring = JsonConvert.SerializeObject(checkInIslemiIcinDataModel);
                var Donus      = webService.ServisIslem("locations/check-in", jsonstring);
                if (Donus != "Hata")
                {
                    this.RunOnUiThread(() => {
                        AlertHelper.AlertGoster(alert, this);
                        ShowLoading.Hide();
                        StartActivity(typeof(LokasyondakiKisilerBaseActivity));
                    });
                }
                else
                {
                    this.RunOnUiThread(() => {
                        AlertHelper.AlertGoster("Bir sorun oluştu...", this);
                        ShowLoading.Hide();
                    });
                }
            })).Start();
        }
Esempio n. 2
0
        void CheckInYap(string statuss, string startprogresstext, string alert)
        {
            CustomLoading.Show(this, startprogresstext);
            new System.Threading.Thread(new System.Threading.ThreadStart(delegate
            {
                WebService webService = new WebService();

                CheckInIslemiIcinDataModel checkInIslemiIcinDataModel = new CheckInIslemiIcinDataModel()
                {
                    locationId = Convert.ToInt32(GelenMekan.id),
                    status     = statuss
                };
                var jsonstring = JsonConvert.SerializeObject(checkInIslemiIcinDataModel);
                var Donus      = webService.ServisIslem("locations/check-in", jsonstring);
                if (Donus != "Hata")
                {
                    InvokeOnMainThread(delegate()
                    {
                        CustomAlert.GetCustomAlert(this, alert);
                        CustomLoading.Hide();
                        var LokasyonKisilerStory             = UIStoryboard.FromName("LokasyondakiKisilerBaseVC", NSBundle.MainBundle);
                        LokasyondakiKisilerBaseVC controller = LokasyonKisilerStory.InstantiateViewController("LokasyondakiKisilerBaseVC") as LokasyondakiKisilerBaseVC;
                        controller.gelenMekan = GelenMekan;
                        this.PresentViewController(controller, true, null);
                    });
                }
                else
                {
                    InvokeOnMainThread(delegate()
                    {
                        CustomAlert.GetCustomAlert(this, "Bir sorun oluştu...");
                        CustomLoading.Hide();
                    });
                }
            })).Start();
        }