public static CustomImageTableCell Create(GalleryView BaseView2, GalleryDataModel GelenDTO) { var OlusanView = (CustomImageTableCell)Nib.Instantiate(null, null)[0]; OlusanView.BaseView = BaseView2; OlusanView.GelenDTO = GelenDTO; return(OlusanView); }
public void SetPhoto(UIImage impath) { string _base64String; NSData imageData = impath.AsJPEG(compressionQuality: 0.1f); _base64String = imageData.GetBase64EncodedString(NSDataBase64EncodingOptions.None); var UserId = DataBase.MEMBER_DATA_GETIR()[0].id; GalleryDataModel fotografEkleDataModel = new GalleryDataModel() { imagePath = _base64String, userId = UserId, createdDate = DateTime.Now.ToString("yyyy-MM-dd'T'HH:mm:ssZ"), lastModifiedDate = DateTime.Now.ToString("yyyy-MM-dd'T'HH:mm:ssZ") }; WebService webService = new WebService(); string jsonString = JsonConvert.SerializeObject(fotografEkleDataModel); var Donus = webService.ServisIslem("images", jsonString); if (Donus != "Hata") { for (int i = 0; i < Noktalar.Length; i++) { Noktalar[i].RemoveFromSuperview(); } GetPhotos(); CreateScrollViews(); CustomLoading.Hide(); GenelBase.GetUserImage(UserId); } else { CustomAlert.GetCustomAlert(this, "Fotoğraf Yüklenemedi!..."); CustomLoading.Hide(); } }