Changeset 11850 for extensions/PiwigoLib/TestPiwigoLib
- Timestamp:
- Jul 29, 2011, 6:05:05 PM (13 years ago)
- Location:
- extensions/PiwigoLib/TestPiwigoLib
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/PiwigoLib/TestPiwigoLib/Form1.Designer.cs
r3821 r11850 1 namespace TestPiwigoLib 1 using System; 2 namespace TestPiwigoLib 2 3 { 3 4 partial class Form1 … … 12 13 /// </summary> 13 14 /// <param name="disposing">true si les ressources managées doivent être supprimées ; sinon, false.</param> 14 protected override void Dispose( booldisposing)15 protected override void Dispose(Boolean disposing) 15 16 { 16 17 if (disposing && (components != null)) -
extensions/PiwigoLib/TestPiwigoLib/Form1.cs
r7149 r11850 4 4 using Com.Piwigo.Lib.IService; 5 5 using Com.Piwigo.Lib.DTO; 6 using System.Collections.Generic; 7 using System.IO; 6 8 7 9 … … 23 25 UriBuilder urib = new UriBuilder(); 24 26 urib.Host = tbServer.Text; 25 urib.Path = " phpwebgallery/ws.php";27 urib.Path = "/ws.php"; 26 28 urib.Scheme = "http://"; 27 29 … … 60 62 //List<PwgCategory> lstCat = PwgServiceProvider.Instance.PwgCategoriesService.GetAdminListOfCategory(); 61 63 62 //Int32 newid = 0; 63 //String msg = String.Empty; 64 //Boolean rc = PwgServiceProvider.Instance.PwgCategoriesService.AddCategory("test_cat", 1, ref newid, ref msg); 64 Int32 newid = 0; 65 String msg = String.Empty; 66 Boolean rc; 67 // rc = PwgServiceProvider.Instance.PwgCategoriesService.AddCategory("test_cat", 1, ref newid, ref msg); 68 //List<PwgCategory> lstCat = PwgServiceProvider.Instance.PwgCategoriesService.GetAdminListOfCategory(); 65 69 //Console.WriteLine(String.Format("newid : {0} message : {1}", newid,msg)); 66 70 //rc = PwgServiceProvider.Instance.PwgCategoriesService.UpdateCategoryInfo(newid, "test2", "rename cat"); 71 //Boolean rc = PwgServiceProvider.Instance.PwgCategoriesService.DeleteCategory(newid, sess.SecurityToken, PwgCategoryPhotoDeletionModeEnum.None); 72 //rc = PwgServiceProvider.Instance.PwgCategoriesService.MoveCategory(new List<Int32>() { newid }, PwgCategory.RootCategoryId, sess.SecurityToken); 67 73 68 PwgImageRate imgRate = PwgServiceProvider.Instance.PwgImagesService.RateImage(1, 5); 74 //lstCat = PwgServiceProvider.Instance.PwgCategoriesService.GetAdminListOfCategory(); 75 76 FileInfo fi = new FileInfo("C:\\Users\\bayral\\Downloads\\49133_1636405570_2648232_n.jpg"); 77 rc = PwgServiceProvider.Instance.PwgImagesService.addImageByMultiPartForm(fi, null, 1, "benoit", "byarl", "test upload", 0, null); 78 79 //PwgImageRate imgRate = PwgServiceProvider.Instance.PwgImagesService.RateImage(1, 5); 69 80 70 81 sess = PwgServiceProvider.Instance.PwgSessionService.Logout(); -
extensions/PiwigoLib/TestPiwigoLib/Form1.resx
r3816 r11850 18 18 <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> 19 19 <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> 20 <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>20 <data name="Name1"><value>this is my long String</value><comment>this is a comment</comment></data> 21 21 <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> 22 22 <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> … … 24 24 </data> 25 25 <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> 26 <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>26 <value>[base64 mime encoded String representing a byte array form of the .NET Framework object]</value> 27 27 <comment>This is a comment</comment> 28 28 </data> … … 68 68 <xsd:complexType> 69 69 <xsd:sequence> 70 <xsd:element name="value" type="xsd: string" minOccurs="0" />70 <xsd:element name="value" type="xsd:String" minOccurs="0" /> 71 71 </xsd:sequence> 72 <xsd:attribute name="name" use="required" type="xsd: string" />73 <xsd:attribute name="type" type="xsd: string" />74 <xsd:attribute name="mimetype" type="xsd: string" />72 <xsd:attribute name="name" use="required" type="xsd:String" /> 73 <xsd:attribute name="type" type="xsd:String" /> 74 <xsd:attribute name="mimetype" type="xsd:String" /> 75 75 <xsd:attribute ref="xml:space" /> 76 76 </xsd:complexType> … … 78 78 <xsd:element name="assembly"> 79 79 <xsd:complexType> 80 <xsd:attribute name="alias" type="xsd: string" />81 <xsd:attribute name="name" type="xsd: string" />80 <xsd:attribute name="alias" type="xsd:String" /> 81 <xsd:attribute name="name" type="xsd:String" /> 82 82 </xsd:complexType> 83 83 </xsd:element> … … 85 85 <xsd:complexType> 86 86 <xsd:sequence> 87 <xsd:element name="value" type="xsd: string" minOccurs="0" msdata:Ordinal="1" />88 <xsd:element name="comment" type="xsd: string" minOccurs="0" msdata:Ordinal="2" />87 <xsd:element name="value" type="xsd:String" minOccurs="0" msdata:Ordinal="1" /> 88 <xsd:element name="comment" type="xsd:String" minOccurs="0" msdata:Ordinal="2" /> 89 89 </xsd:sequence> 90 <xsd:attribute name="name" type="xsd: string" use="required" msdata:Ordinal="1" />91 <xsd:attribute name="type" type="xsd: string" msdata:Ordinal="3" />92 <xsd:attribute name="mimetype" type="xsd: string" msdata:Ordinal="4" />90 <xsd:attribute name="name" type="xsd:String" use="required" msdata:Ordinal="1" /> 91 <xsd:attribute name="type" type="xsd:String" msdata:Ordinal="3" /> 92 <xsd:attribute name="mimetype" type="xsd:String" msdata:Ordinal="4" /> 93 93 <xsd:attribute ref="xml:space" /> 94 94 </xsd:complexType> … … 97 97 <xsd:complexType> 98 98 <xsd:sequence> 99 <xsd:element name="value" type="xsd: string" minOccurs="0" msdata:Ordinal="1" />99 <xsd:element name="value" type="xsd:String" minOccurs="0" msdata:Ordinal="1" /> 100 100 </xsd:sequence> 101 <xsd:attribute name="name" type="xsd: string" use="required" />101 <xsd:attribute name="name" type="xsd:String" use="required" /> 102 102 </xsd:complexType> 103 103 </xsd:element> -
extensions/PiwigoLib/TestPiwigoLib/Program.cs
r3816 r11850 9 9 { 10 10 /// <summary> 11 /// Po intd'entrée principal de l'application.11 /// PoInt32 d'entrée principal de l'application. 12 12 /// </summary> 13 13 [STAThread] -
extensions/PiwigoLib/TestPiwigoLib/Properties/Resources.Designer.cs
r6811 r11850 1 1 //------------------------------------------------------------------------------ 2 2 // <auto-generated> 3 // Ce code a été généré par un outil.4 // Version du runtime :4.0.30319.13 // This code was generated by a tool. 4 // Runtime Version:4.0.30319.235 5 5 // 6 // Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si7 // le code est régénéré.6 // Changes to this file may cause incorrect behavior and will be lost if 7 // the code is regenerated. 8 8 // </auto-generated> 9 9 //------------------------------------------------------------------------------ … … 14 14 15 15 /// <summary> 16 /// Une classe de ressource fortement typée destinée, entre autres, à la consultation des chaînes localisées.16 /// A strongly-typed resource class, for looking up localized strings, etc. 17 17 /// </summary> 18 // Cette classe a été générée automatiquement par la classe StronglyTypedResourceBuilder19 // à l'aide d'un outil, tel que ResGen ouVisual Studio.20 // Pour ajouter ou supprimer un membre, modifiez votre fichier .ResX, puis réexécutezResGen21 // avec l'option /str ou régénérez votre projet VS.18 // This class was auto-generated by the StronglyTypedResourceBuilder 19 // class via a tool like ResGen or Visual Studio. 20 // To add or remove a member, edit your .ResX file then rerun ResGen 21 // with the /str option, or rebuild your VS project. 22 22 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] 23 23 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] … … 34 34 35 35 /// <summary> 36 /// Ret ourne l'instance ResourceManager mise en cache utilisée par cette classe.36 /// Returns the cached ResourceManager instance used by this class. 37 37 /// </summary> 38 38 [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] … … 48 48 49 49 /// <summary> 50 /// Remplace la propriété CurrentUICulture du thread actuel pour toutes51 /// les recherches de ressources à l'aide de cette classe de ressource fortement typée.50 /// Overrides the current thread's CurrentUICulture property for all 51 /// resource lookups using this strongly typed resource class. 52 52 /// </summary> 53 53 [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] -
extensions/PiwigoLib/TestPiwigoLib/Properties/Resources.resx
r3816 r11850 18 18 <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader> 19 19 <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader> 20 <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>20 <data name="Name1"><value>this is my long String</value><comment>this is a comment</comment></data> 21 21 <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data> 22 22 <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64"> … … 24 24 </data> 25 25 <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64"> 26 <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>26 <value>[base64 mime encoded String representing a byte array form of the .NET Framework object]</value> 27 27 <comment>This is a comment</comment> 28 28 </data> … … 67 67 <xsd:complexType> 68 68 <xsd:sequence> 69 <xsd:element name="value" type="xsd: string" minOccurs="0" />69 <xsd:element name="value" type="xsd:String" minOccurs="0" /> 70 70 </xsd:sequence> 71 <xsd:attribute name="name" type="xsd: string" />72 <xsd:attribute name="type" type="xsd: string" />73 <xsd:attribute name="mimetype" type="xsd: string" />71 <xsd:attribute name="name" type="xsd:String" /> 72 <xsd:attribute name="type" type="xsd:String" /> 73 <xsd:attribute name="mimetype" type="xsd:String" /> 74 74 </xsd:complexType> 75 75 </xsd:element> 76 76 <xsd:element name="assembly"> 77 77 <xsd:complexType> 78 <xsd:attribute name="alias" type="xsd: string" />79 <xsd:attribute name="name" type="xsd: string" />78 <xsd:attribute name="alias" type="xsd:String" /> 79 <xsd:attribute name="name" type="xsd:String" /> 80 80 </xsd:complexType> 81 81 </xsd:element> … … 83 83 <xsd:complexType> 84 84 <xsd:sequence> 85 <xsd:element name="value" type="xsd: string" minOccurs="0" msdata:Ordinal="1" />86 <xsd:element name="comment" type="xsd: string" minOccurs="0" msdata:Ordinal="2" />85 <xsd:element name="value" type="xsd:String" minOccurs="0" msdata:Ordinal="1" /> 86 <xsd:element name="comment" type="xsd:String" minOccurs="0" msdata:Ordinal="2" /> 87 87 </xsd:sequence> 88 <xsd:attribute name="name" type="xsd: string" msdata:Ordinal="1" />89 <xsd:attribute name="type" type="xsd: string" msdata:Ordinal="3" />90 <xsd:attribute name="mimetype" type="xsd: string" msdata:Ordinal="4" />88 <xsd:attribute name="name" type="xsd:String" msdata:Ordinal="1" /> 89 <xsd:attribute name="type" type="xsd:String" msdata:Ordinal="3" /> 90 <xsd:attribute name="mimetype" type="xsd:String" msdata:Ordinal="4" /> 91 91 </xsd:complexType> 92 92 </xsd:element> … … 94 94 <xsd:complexType> 95 95 <xsd:sequence> 96 <xsd:element name="value" type="xsd: string" minOccurs="0" msdata:Ordinal="1" />96 <xsd:element name="value" type="xsd:String" minOccurs="0" msdata:Ordinal="1" /> 97 97 </xsd:sequence> 98 <xsd:attribute name="name" type="xsd: string" use="required" />98 <xsd:attribute name="name" type="xsd:String" use="required" /> 99 99 </xsd:complexType> 100 100 </xsd:element> -
extensions/PiwigoLib/TestPiwigoLib/Properties/Settings.Designer.cs
r6811 r11850 9 9 //------------------------------------------------------------------------------ 10 10 11 using System; 11 12 namespace TestPiwigoLib.Properties { 12 13 … … 27 28 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 28 29 [global::System.Configuration.DefaultSettingValueAttribute("")] 29 public string userData {30 public String userData { 30 31 get { 31 return (( string)(this["userData"]));32 return ((String)(this["userData"])); 32 33 } 33 34 set { … … 39 40 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 40 41 [global::System.Configuration.DefaultSettingValueAttribute("")] 41 public string pwdData {42 public String pwdData { 42 43 get { 43 return (( string)(this["pwdData"]));44 return ((String)(this["pwdData"])); 44 45 } 45 46 set { … … 51 52 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 52 53 [global::System.Configuration.DefaultSettingValueAttribute("")] 53 public string serverUrlData {54 public String serverUrlData { 54 55 get { 55 return (( string)(this["serverUrlData"]));56 return ((String)(this["serverUrlData"])); 56 57 } 57 58 set {
Note: See TracChangeset
for help on using the changeset viewer.