private void MekandakilerButton_TouchUpInside(object sender, EventArgs e) { var LokasyonKisilerStory = UIStoryboard.FromName("LokasyondakiKisilerBaseVC", NSBundle.MainBundle); LokasyondakiKisilerBaseVC controller = LokasyonKisilerStory.InstantiateViewController("LokasyondakiKisilerBaseVC") as LokasyondakiKisilerBaseVC; controller.gelenMekan = GelenMekan; MesajAtabilmekIcinSecilenSonLokasyon.TiklananMekan = GelenMekan; controller.ModalPresentationStyle = UIModalPresentationStyle.FullScreen; this.PresentViewController(controller, true, null); }
public static LokasyondakiKisilerTumu Create(Mekanlar_Location GelenMekan2, LokasyondakiKisilerBaseVC gelenbase2, List <BlockedUser> blockUser2) { var arr = NSBundle.MainBundle.LoadNib("LokasyondakiKisilerTumu", null, null); var v = Runtime.GetNSObject <LokasyondakiKisilerTumu>(arr.ValueAt(0)); v.BackgroundColor = UIColor.Clear; v.GelenMekan = GelenMekan2; v.gelenbase = gelenbase2; return(v); }
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(); }