Author: fmantek
Date: Thu Nov 15 01:23:43 2007
New Revision: 319

Modified:
   trunk/clients/cs/samples/PhotoBrowser/Browser.cs
   trunk/clients/cs/samples/PhotoBrowser/GoogleClientLogin.cs
   trunk/clients/cs/src/VS2003/Photobrowser/PhotoBrowser.csproj
   trunk/clients/cs/src/core/exceptions.cs
   trunk/clients/cs/src/gphotos/albumentry.cs
   trunk/clients/cs/src/gphotos/photoentry.cs
   trunk/clients/cs/src/gspreadsheet/cellentry.cs
   trunk/clients/cs/src/gspreadsheet/cellfeed.cs
   trunk/clients/cs/src/gspreadsheet/worksheetfeed.cs

Log:
cosmetic changes (comments etc)

Modified: trunk/clients/cs/samples/PhotoBrowser/Browser.cs
==============================================================================
--- trunk/clients/cs/samples/PhotoBrowser/Browser.cs    (original)
+++ trunk/clients/cs/samples/PhotoBrowser/Browser.cs    Thu Nov 15 
01:23:43 2007
@@ -6,6 +6,7 @@
 using System.Data;
 using Google.GData.Photos;
 using Google.GData.Extensions.MediaRss;
+using Google.GData.Tools;
 using System.IO;

 namespace PhotoBrowser
@@ -214,7 +215,7 @@
         {
             if (this.googleAuthToken == null)
             {
-                GoogleClientLogin loginDialog = new GoogleClientLogin();
+                GoogleClientLogin loginDialog = new 
GoogleClientLogin(new PicasaService("PhotoBrowser"));
                 loginDialog.ShowDialog();

                 this.googleAuthToken = loginDialog.AuthenticationToken;

Modified: trunk/clients/cs/samples/PhotoBrowser/GoogleClientLogin.cs
==============================================================================
--- trunk/clients/cs/samples/PhotoBrowser/GoogleClientLogin.cs  (original)
+++ trunk/clients/cs/samples/PhotoBrowser/GoogleClientLogin.cs  Thu Nov 
15 01:23:43 2007
@@ -3,9 +3,9 @@
 using System.Collections;
 using System.ComponentModel;
 using System.Windows.Forms;
-using Google.GData.Photos;
+using Google.GData.Client;

-namespace PhotoBrowser
+namespace Google.GData.Tools
 {
        /// <summary>
        /// Summary description for GoogleClientLoging.
@@ -21,23 +21,20 @@
         private System.Windows.Forms.Label label1;
         private System.Windows.Forms.Label label2;
         private System.Windows.Forms.TextBox Username;
+        private Service service;
                /// <summary>
                /// Required designer variable.
                /// </summary>
                private System.ComponentModel.Container components = null;

-               public GoogleClientLogin()
+               public GoogleClientLogin(Service serviceToUse)
                {
                        //
                        // Required for Windows Form Designer support
                        //
                        InitializeComponent();

-                       //
-                       // TODO: Add any constructor code after 
InitializeComponent call
-                       //
-       //     this.Username.Text = "[EMAIL PROTECTED]";
-       //     this.Password.Text = "xapitest";
+            this.service = serviceToUse;
                }

         public GoogleClientLogin(string username)
@@ -197,9 +194,8 @@

         private void Login_Click(object sender, System.EventArgs e)
         {
-            PicasaService service = new PicasaService("PhotoBrowser");
-            service.setUserCredentials(this.Username.Text, this.Password.Text);
-            this.authToken = service.QueryAuthenticationToken();
+            this.service.setUserCredentials(this.Username.Text, 
this.Password.Text);
+            this.authToken = this.service.QueryAuthenticationToken();
             this.Close();
         }


Modified: trunk/clients/cs/src/VS2003/Photobrowser/PhotoBrowser.csproj
==============================================================================
--- trunk/clients/cs/src/VS2003/Photobrowser/PhotoBrowser.csproj        
(original)
+++ trunk/clients/cs/src/VS2003/Photobrowser/PhotoBrowser.csproj        Thu 
Nov 15 01:23:43 2007
@@ -111,6 +111,7 @@
                 <File
                     RelPath = "AssemblyVersion.cs"
                     Link = "..\..\version\AssemblyVersion.cs"
+                    SubType = "Code"
                     BuildAction = "Compile"
                 />
                 <File

Modified: trunk/clients/cs/src/core/exceptions.cs
==============================================================================
--- trunk/clients/cs/src/core/exceptions.cs     (original)
+++ trunk/clients/cs/src/core/exceptions.cs     Thu Nov 15 01:23:43 2007
@@ -223,6 +223,9 @@
         }
         
/////////////////////////////////////////////////////////////////////////////

+        /// <summary>
+        /// Returns the BatchResult Feed that contains the problem
+        /// </summary>
         public AtomFeed BatchResult
         {
             get { return this.batchResult; }

Modified: trunk/clients/cs/src/gphotos/albumentry.cs
==============================================================================
--- trunk/clients/cs/src/gphotos/albumentry.cs  (original)
+++ trunk/clients/cs/src/gphotos/albumentry.cs  Thu Nov 15 01:23:43 2007
@@ -141,14 +141,14 @@
             }
         }

+        /// <summary>
+        /// The title of the album
+        /// </summary>
 #if WindowsCE || PocketPC
 #else
         [Category("Base Album Data"),
         Description("Specifies the name of the album.")]
 #endif
-        /// <summary>
-        /// The title of the album
-        /// </summary>
         public string AlbumTitle
         {
             get
@@ -161,14 +161,14 @@
             }
         }

+        /// <summary>
+        /// The  summary of the album
+        /// </summary>
 #if WindowsCE || PocketPC
 #else
         [Category("Base Album Data"),
         Description("Specifies the summary of the album.")]
 #endif
-        /// <summary>
-        /// The  summary of the album
-        /// </summary>
         public string AlbumSummary
         {
             get

Modified: trunk/clients/cs/src/gphotos/photoentry.cs
==============================================================================
--- trunk/clients/cs/src/gphotos/photoentry.cs  (original)
+++ trunk/clients/cs/src/gphotos/photoentry.cs  Thu Nov 15 01:23:43 2007
@@ -77,14 +77,14 @@



+        /// <summary>
+        /// The title of the photo
+        /// </summary>
 #if WindowsCE || PocketPC
 #else
         [Category("Base Photo Data"),
         Description("Specifies the name of the photo.")]
 #endif
-        /// <summary>
-        /// The title of the photo
-        /// </summary>
         public string PhotoTitle
         {
             get
@@ -96,14 +96,16 @@
                 this.entry.Title.Text = value;
             }
         }
+
+
+        /// <summary>
+        /// The  summary of the Photo
+        /// </summary>
 #if WindowsCE || PocketPC
 #else
         [Category("Base Photo Data"),
         Description("Specifies the summary of the Photo.")]
 #endif
-        /// <summary>
-        /// The  summary of the Photo
-        /// </summary>
         public string PhotoSummary
         {
             get
@@ -117,15 +119,15 @@
         }


+        /// <summary>
+        /// The checksum on the photo. This optional field can be used by
+        /// uploaders to associate a checksum with a photo to ease 
duplicate detection
+        /// </summary>
 #if WindowsCE || PocketPC
 #else
         [Category("Meta Photo Data"),
         Description("The checksum on the photo.")]
 #endif
-        /// <summary>
-        /// The checksum on the photo. This optional field can be used by
-        /// uploaders to associate a checksum with a photo to ease 
duplicate detection
-        /// </summary>
         public string Checksum
         {
             get
@@ -138,14 +140,14 @@
             }
         }

+        /// <summary>
+        /// The client application that created the photo. (Optional element.)
+        /// </summary>
 #if WindowsCE || PocketPC
 #else
         [Category("Meta Photo Data"),
         Description("The client application that created the photo.")]
 #endif
-        /// <summary>
-        /// The client application that created the photo. (Optional element.)
-        /// </summary>
         public string Client
         {
             get
@@ -158,14 +160,14 @@
             }
         }

+        /// <summary>
+        /// The height of the photo in pixels
+        /// </summary>
 #if WindowsCE || PocketPC
 #else
         [Category("Basic Photo Data"),
         Description("The height of the photo in pixels.")]
 #endif
-        /// <summary>
-        /// The height of the photo in pixels
-        /// </summary>
         public int Height
         {
             get
@@ -178,14 +180,14 @@
             }
         }

+        /// <summary>
+        /// The width of the photo in pixels
+        /// </summary>
 #if WindowsCE || PocketPC
 #else
         [Category("Basic Photo Data"),
         Description("The width of the photo in pixels.")]
 #endif
-        /// <summary>
-        /// The width of the photo in pixels
-        /// </summary>
         public int Width
         {
             get
@@ -199,14 +201,14 @@
         }


+        /// <summary>
+        /// The ordinal position of the photo in the parent album
+        /// </summary>
 #if WindowsCE || PocketPC
 #else
         [Category("Basic Photo Data"),
         Description("The ordinal position of the photo in the parent album.")]
 #endif
-        /// <summary>
-        /// The ordinal position of the photo in the parent album
-        /// </summary>
         public double Position
         {
             get
@@ -219,15 +221,15 @@
             }
         }

+        /// <summary>
+        /// The rotation of the photo in degrees, used to change the 
rotation of the photo. Will only be shown if
+        /// the rotation has not already been applied to the requested images.
+        /// </summary>
 #if WindowsCE || PocketPC
 #else
         [Category("Basic Photo Data"),
         Description("The rotation of the photo in degrees.")]
 #endif
-        /// <summary>
-        /// The rotation of the photo in degrees, used to change the 
rotation of the photo. Will only be shown if
-        /// the rotation has not already been applied to the requested images.
-        /// </summary>
         public int Rotation
         {
             get
@@ -240,14 +242,14 @@
             }
         }

+        /// <summary>
+        /// The size of the photo in bytes
+        /// </summary>
 #if WindowsCE || PocketPC
 #else
         [Category("Basic Photo Data"),
         Description("The size of the photo in bytes.")]
 #endif
-        /// <summary>
-        /// The size of the photo in bytes
-        /// </summary>
         public long Size
         {
             get
@@ -261,16 +263,16 @@
         }


-#if WindowsCE || PocketPC
-#else
-        [Category("Meta Photo Data"),
-        Description("The photo's timestamp")]
-#endif
         /// <summary>
          /// The photo's timestamp, represented as the number of 
milliseconds since
          /// January 1st, 1970. Contains the date of the photo either 
set externally
         /// or retrieved from the Exif data.
         /// </summary>
+#if WindowsCE || PocketPC
+#else
+        [Category("Meta Photo Data"),
+        Description("The photo's timestamp")]
+#endif
         public ulong Timestamp
         {
             get
@@ -284,17 +286,17 @@
         }


-#if WindowsCE || PocketPC
-#else
-        [Category("Meta Photo Data"),
-        Description("The version number of the photo.")]
-#endif
         /// <summary>
          /// The version number of the photo. Version numbers are based 
on modification time,
          /// so they don't increment linearly. Note that if you try to 
update a photo using a
          /// version number other than the latest one, you may receive 
an error;
          /// for more information, see Optimistic concurrency 
(versioning) in the GData reference document
         /// </summary>
+#if WindowsCE || PocketPC
+#else
+        [Category("Meta Photo Data"),
+        Description("The version number of the photo.")]
+#endif
         public string Version
         {
             get
@@ -307,14 +309,14 @@
             }
         }

+        /// <summary>
+        /// The albums ID
+        /// </summary>
 #if WindowsCE || PocketPC
 #else
         [Category("Meta Photo Data"),
         Description("The albums ID.")]
 #endif
-        /// <summary>
-        /// The albums ID
-        /// </summary>
         public string AlbumId
         {
             get
@@ -327,14 +329,14 @@
             }
         }

+        /// <summary>
+        /// the number of comments on a photo
+        /// </summary>
 #if WindowsCE || PocketPC
 #else
         [Category("Commenting"),
         Description("the number of comments on a photo.")]
 #endif
-        /// <summary>
-        /// the number of comments on a photo
-        /// </summary>
         public uint CommentCount
         {
             get
@@ -347,14 +349,14 @@
             }
         }

+        /// <summary>
+        /// is commenting enabled on a photo
+        /// </summary>
 #if WindowsCE || PocketPC
 #else
         [Category("Commenting"),
         Description("is commenting enabled on a photo.")]
 #endif
-        /// <summary>
-        /// is commenting enabled on a photo
-        /// </summary>
         public bool CommentingEnabled
         {
             get
@@ -368,14 +370,14 @@
         }


+        /// <summary>
+        /// the id of the photo
+        /// </summary>
 #if WindowsCE || PocketPC
 #else
         [Category("Meta Photo Data"),
         Description("the id of the photo.")]
 #endif
-        /// <summary>
-        /// the id of the photo
-        /// </summary>
         public string Id
         {
             get

Modified: trunk/clients/cs/src/gspreadsheet/cellentry.cs
==============================================================================
--- trunk/clients/cs/src/gspreadsheet/cellentry.cs      (original)
+++ trunk/clients/cs/src/gspreadsheet/cellentry.cs      Thu Nov 15 01:23:43 2007
@@ -123,8 +123,6 @@

 #endregion

-        private CellElement cell;
-
         /// <summary>
         /// Constructs a new CellEntry instance with the appropriate category
         /// to indicate that it is a cell.

Modified: trunk/clients/cs/src/gspreadsheet/cellfeed.cs
==============================================================================
--- trunk/clients/cs/src/gspreadsheet/cellfeed.cs       (original)
+++ trunk/clients/cs/src/gspreadsheet/cellfeed.cs       Thu Nov 15 01:23:43 2007
@@ -143,7 +143,7 @@


         /// <summary>
-        /// deletes a cell by using row && column addressing
+        /// deletes a cell by using row and column addressing
         /// </summary>
         /// <param name="row"></param>
         /// <param name="column"></param>

Modified: trunk/clients/cs/src/gspreadsheet/worksheetfeed.cs
==============================================================================
--- trunk/clients/cs/src/gspreadsheet/worksheetfeed.cs  (original)
+++ trunk/clients/cs/src/gspreadsheet/worksheetfeed.cs  Thu Nov 15 
01:23:43 2007
@@ -56,18 +56,6 @@
         {
             return base.Insert(newEntry) as WorksheetEntry;
         }
-

-
-          /// <summary>
-        /// get's called after we already handled the custom entry, to 
handle all
-        /// other potential parsing tasks
-        /// </summary>
-        /// <param name="e">the event arguments</param>

-        /// <param name="parser">the atom feed parser calling</param>

-        protected override void 
HandleExtensionElements(ExtensionElementEventArgs e, AtomFeedParser parser)
-        {
-             Tracing.TraceMsg("\t HandleExtensionElements for 
worksheet feed called");
-        }
     }
 }

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Data API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-help-dataapi?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to