Ignore:
Timestamp:
Jul 29, 2011, 6:05:05 PM (13 years ago)
Author:
bayral
Message:

MAj des truc existant et debut du upload de fichier

Location:
extensions/PiwigoLib/TestPiwigoLib
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • extensions/PiwigoLib/TestPiwigoLib/Form1.Designer.cs

    r3821 r11850  
    1 namespace TestPiwigoLib
     1using System;
     2namespace TestPiwigoLib
    23{
    34    partial class Form1
     
    1213        /// </summary>
    1314        /// <param name="disposing">true si les ressources managées doivent être supprimées ; sinon, false.</param>
    14         protected override void Dispose(bool disposing)
     15        protected override void Dispose(Boolean disposing)
    1516        {
    1617            if (disposing && (components != null))
  • extensions/PiwigoLib/TestPiwigoLib/Form1.cs

    r7149 r11850  
    44using Com.Piwigo.Lib.IService;
    55using Com.Piwigo.Lib.DTO;
     6using System.Collections.Generic;
     7using System.IO;
    68
    79
     
    2325            UriBuilder urib = new UriBuilder();
    2426            urib.Host = tbServer.Text;
    25             urib.Path = "phpwebgallery/ws.php";
     27            urib.Path = "/ws.php";
    2628            urib.Scheme = "http://";
    2729
     
    6062                //List<PwgCategory> lstCat = PwgServiceProvider.Instance.PwgCategoriesService.GetAdminListOfCategory();
    6163
    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();
    6569                //Console.WriteLine(String.Format("newid : {0} message : {1}", newid,msg));
    6670                //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);
    6773
    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);
    6980
    7081                sess = PwgServiceProvider.Instance.PwgSessionService.Logout();
  • extensions/PiwigoLib/TestPiwigoLib/Form1.resx

    r3816 r11850  
    1818    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
    1919    <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>
    2121    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
    2222    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
     
    2424    </data>
    2525    <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>
    2727        <comment>This is a comment</comment>
    2828    </data>
     
    6868            <xsd:complexType>
    6969              <xsd:sequence>
    70                 <xsd:element name="value" type="xsd:string" minOccurs="0" />
     70                <xsd:element name="value" type="xsd:String" minOccurs="0" />
    7171              </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" />
    7575              <xsd:attribute ref="xml:space" />
    7676            </xsd:complexType>
     
    7878          <xsd:element name="assembly">
    7979            <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" />
    8282            </xsd:complexType>
    8383          </xsd:element>
     
    8585            <xsd:complexType>
    8686              <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" />
    8989              </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" />
    9393              <xsd:attribute ref="xml:space" />
    9494            </xsd:complexType>
     
    9797            <xsd:complexType>
    9898              <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" />
    100100              </xsd:sequence>
    101               <xsd:attribute name="name" type="xsd:string" use="required" />
     101              <xsd:attribute name="name" type="xsd:String" use="required" />
    102102            </xsd:complexType>
    103103          </xsd:element>
  • extensions/PiwigoLib/TestPiwigoLib/Program.cs

    r3816 r11850  
    99    {
    1010        /// <summary>
    11         /// Point d'entrée principal de l'application.
     11        /// PoInt32 d'entrée principal de l'application.
    1212        /// </summary>
    1313        [STAThread]
  • extensions/PiwigoLib/TestPiwigoLib/Properties/Resources.Designer.cs

    r6811 r11850  
    11//------------------------------------------------------------------------------
    22// <auto-generated>
    3 //     Ce code a été généré par un outil.
    4 //     Version du runtime :4.0.30319.1
     3//     This code was generated by a tool.
     4//     Runtime Version:4.0.30319.235
    55//
    6 //     Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si
    7 //     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.
    88// </auto-generated>
    99//------------------------------------------------------------------------------
     
    1414   
    1515    /// <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.
    1717    /// </summary>
    18     // Cette classe a été générée automatiquement par la classe StronglyTypedResourceBuilder
    19     // à l'aide d'un outil, tel que ResGen ou Visual Studio.
    20     // Pour ajouter ou supprimer un membre, modifiez votre fichier .ResX, puis réexécutez ResGen
    21     // 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.
    2222    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
    2323    [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     
    3434       
    3535        /// <summary>
    36         ///   Retourne l'instance ResourceManager mise en cache utilisée par cette classe.
     36        ///   Returns the cached ResourceManager instance used by this class.
    3737        /// </summary>
    3838        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
     
    4848       
    4949        /// <summary>
    50         ///   Remplace la propriété CurrentUICulture du thread actuel pour toutes
    51         ///   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.
    5252        /// </summary>
    5353        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
  • extensions/PiwigoLib/TestPiwigoLib/Properties/Resources.resx

    r3816 r11850  
    1818    <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
    1919    <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>
    2121    <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
    2222    <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
     
    2424    </data>
    2525    <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>
    2727        <comment>This is a comment</comment>
    2828    </data>
     
    6767            <xsd:complexType>
    6868              <xsd:sequence>
    69                 <xsd:element name="value" type="xsd:string" minOccurs="0" />
     69                <xsd:element name="value" type="xsd:String" minOccurs="0" />
    7070              </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" />
    7474            </xsd:complexType>
    7575          </xsd:element>
    7676          <xsd:element name="assembly">
    7777            <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" />
    8080            </xsd:complexType>
    8181          </xsd:element>
     
    8383            <xsd:complexType>
    8484              <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" />
    8787              </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" />
    9191            </xsd:complexType>
    9292          </xsd:element>
     
    9494            <xsd:complexType>
    9595              <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" />
    9797              </xsd:sequence>
    98               <xsd:attribute name="name" type="xsd:string" use="required" />
     98              <xsd:attribute name="name" type="xsd:String" use="required" />
    9999            </xsd:complexType>
    100100          </xsd:element>
  • extensions/PiwigoLib/TestPiwigoLib/Properties/Settings.Designer.cs

    r6811 r11850  
    99//------------------------------------------------------------------------------
    1010
     11using System;
    1112namespace TestPiwigoLib.Properties {
    1213   
     
    2728        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
    2829        [global::System.Configuration.DefaultSettingValueAttribute("")]
    29         public string userData {
     30        public String userData {
    3031            get {
    31                 return ((string)(this["userData"]));
     32                return ((String)(this["userData"]));
    3233            }
    3334            set {
     
    3940        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
    4041        [global::System.Configuration.DefaultSettingValueAttribute("")]
    41         public string pwdData {
     42        public String pwdData {
    4243            get {
    43                 return ((string)(this["pwdData"]));
     44                return ((String)(this["pwdData"]));
    4445            }
    4546            set {
     
    5152        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
    5253        [global::System.Configuration.DefaultSettingValueAttribute("")]
    53         public string serverUrlData {
     54        public String serverUrlData {
    5455            get {
    55                 return ((string)(this["serverUrlData"]));
     56                return ((String)(this["serverUrlData"]));
    5657            }
    5758            set {
Note: See TracChangeset for help on using the changeset viewer.