Ejemplo n.º 1
0
 private void performUploading(string path)
 {
     if (CloudinaryProxy == null)
     {
         MessageBox.Show("CloudinaryProxy object is null in MainForm..");
         return;
     }
     else
     {
         string URL     = CloudinaryProxy.UploadPhoto(path, LoggedInUser.UserName, LoggedInUser.UserName);
         int    PhotoID = DataBaseProxy.InsertNewPhoto(LoggedInUser.UserName, URL);
         DataBaseProxy.InsertPhotoToCollection(LoggedInUser.ID, PhotoID);
         MessageBox.Show("The Photo was uploaded successfully to our server (cloudinary)");
         UpdaterChecker.IsPhotosCollectionHasChanged = true;
     }
 }
Ejemplo n.º 2
0
 private void InitProxies()
 {
     CloudinaryProxy = new CloudinaryProxy();
     DataBaseProxy   = new DataBaseProxy();
 }