Changeset 3820


Ignore:
Timestamp:
Sep 3, 2009, 10:47:19 PM (11 years ago)
Author:
bayral
Message:

new test windows

Location:
extensions/PiwigoLib/TestPiwigoLib
Files:
5 edited

Legend:

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

    r3819 r3820  
    3030        {
    3131            this.button1 = new System.Windows.Forms.Button();
    32             this.tbUser = new System.Windows.Forms.TextBox();
    33             this.tbPassword = new System.Windows.Forms.TextBox();
    3432            this.label1 = new System.Windows.Forms.Label();
    3533            this.label2 = new System.Windows.Forms.Label();
     34            this.tbPassword = new System.Windows.Forms.TextBox();
     35            this.tbUser = new System.Windows.Forms.TextBox();
    3636            this.SuspendLayout();
    3737            //
     
    4545            this.button1.UseVisualStyleBackColor = true;
    4646            this.button1.Click += new System.EventHandler(this.button1_Click);
    47             //
    48             // tbUser
    49             //
    50             this.tbUser.Location = new System.Drawing.Point(68, 12);
    51             this.tbUser.Name = "tbUser";
    52             this.tbUser.Size = new System.Drawing.Size(138, 20);
    53             this.tbUser.TabIndex = 1;
    54             //
    55             // tbPassword
    56             //
    57             this.tbPassword.Location = new System.Drawing.Point(68, 38);
    58             this.tbPassword.Name = "tbPassword";
    59             this.tbPassword.PasswordChar = '*';
    60             this.tbPassword.Size = new System.Drawing.Size(138, 20);
    61             this.tbPassword.TabIndex = 2;
    62             this.tbPassword.UseSystemPasswordChar = true;
    6347            //
    6448            // label1
     
    8064            this.label2.Text = "Password";
    8165            //
     66            // tbPassword
     67            //
     68            this.tbPassword.DataBindings.Add(new System.Windows.Forms.Binding("Text", global::TestPiwigoLib.Properties.Settings.Default, "PwdData", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
     69            this.tbPassword.Location = new System.Drawing.Point(68, 38);
     70            this.tbPassword.Name = "tbPassword";
     71            this.tbPassword.PasswordChar = '*';
     72            this.tbPassword.Size = new System.Drawing.Size(138, 20);
     73            this.tbPassword.TabIndex = 2;
     74            this.tbPassword.Text = global::TestPiwigoLib.Properties.Settings.Default.PwdData;
     75            this.tbPassword.UseSystemPasswordChar = true;
     76            //
     77            // tbUser
     78            //
     79            this.tbUser.DataBindings.Add(new System.Windows.Forms.Binding("Text", global::TestPiwigoLib.Properties.Settings.Default, "userData", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
     80            this.tbUser.Location = new System.Drawing.Point(68, 12);
     81            this.tbUser.Name = "tbUser";
     82            this.tbUser.Size = new System.Drawing.Size(138, 20);
     83            this.tbUser.TabIndex = 1;
     84            this.tbUser.Text = global::TestPiwigoLib.Properties.Settings.Default.userData;
     85            //
    8286            // Form1
    8387            //
     
    9195            this.Controls.Add(this.button1);
    9296            this.Name = "Form1";
    93             this.Text = "Form1";
     97            this.Text = "Tester PiwigoLib";
    9498            this.Load += new System.EventHandler(this.Form1_Load);
    9599            this.ResumeLayout(false);
  • extensions/PiwigoLib/TestPiwigoLib/Form1.cs

    r3819 r3820  
    4545                Console.WriteLine("user : " + sess.UserName + " " + sess.Status);
    4646
    47                 Boolean rc = PwgTagsService.AddTag("Loic");
     47                //Boolean rc = PwgTagsService.AddTag("Loic");
    4848
    49                 List<PwgTag> lstTag = PwgTagsService.GetAdminListOfTag();
     49                //List<PwgTag> lstTag = PwgTagsService.GetAdminListOfTag();
    5050
    5151                sess = PwgSessionService.Logout();
    52                 Console.WriteLine("user : " + sess.UserName + " " + sess.Status);
    53 
    54                 sess = PwgSessionService.Login(tbUser.Text, tbPassword.Text);
    5552                Console.WriteLine("user : " + sess.UserName + " " + sess.Status);
    5653            }
     
    5855            {
    5956                Console.WriteLine("Erreur " + ex.NumeroErr + " " + ex.MessageErr);
     57                Console.WriteLine(ex.Message);
    6058            }
    6159
  • extensions/PiwigoLib/TestPiwigoLib/Properties/Settings.Designer.cs

    r3816 r3820  
    11//------------------------------------------------------------------------------
    22// <auto-generated>
    3 //     This code was generated by a tool.
    4 //     Runtime Version:2.0.50727.3082
     3//     Ce code a été généré par un outil.
     4//     Version du runtime :2.0.50727.3082
    55//
    6 //     Changes to this file may cause incorrect behavior and will be lost if
    7 //     the code is regenerated.
     6//     Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si
     7//     le code est régénéré.
    88// </auto-generated>
    99//------------------------------------------------------------------------------
    1010
    11 namespace TestPiwigoLib.Properties
    12 {
    13 
    14 
     11namespace TestPiwigoLib.Properties {
     12   
     13   
    1514    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
    1615    [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0")]
    17     internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
    18     {
    19 
     16    internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
     17       
    2018        private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
    21 
    22         public static Settings Default
    23         {
    24             get
    25             {
     19       
     20        public static Settings Default {
     21            get {
    2622                return defaultInstance;
     23            }
     24        }
     25       
     26        [global::System.Configuration.UserScopedSettingAttribute()]
     27        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     28        [global::System.Configuration.DefaultSettingValueAttribute("")]
     29        public string userData {
     30            get {
     31                return ((string)(this["userData"]));
     32            }
     33            set {
     34                this["userData"] = value;
     35            }
     36        }
     37       
     38        [global::System.Configuration.UserScopedSettingAttribute()]
     39        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     40        [global::System.Configuration.DefaultSettingValueAttribute("")]
     41        public string PwdData {
     42            get {
     43                return ((string)(this["PwdData"]));
     44            }
     45            set {
     46                this["PwdData"] = value;
    2747            }
    2848        }
  • extensions/PiwigoLib/TestPiwigoLib/Properties/Settings.settings

    r3816 r3820  
    11<?xml version='1.0' encoding='utf-8'?>
    2 <SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
    3   <Profiles>
    4     <Profile Name="(Default)" />
    5   </Profiles>
    6   <Settings />
     2<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="TestPiwigoLib.Properties" GeneratedClassName="Settings">
     3  <Profiles />
     4  <Settings>
     5    <Setting Name="userData" Type="System.String" Scope="User">
     6      <Value Profile="(Default)" />
     7    </Setting>
     8    <Setting Name="PwdData" Type="System.String" Scope="User">
     9      <Value Profile="(Default)" />
     10    </Setting>
     11  </Settings>
    712</SettingsFile>
  • extensions/PiwigoLib/TestPiwigoLib/TestPiwigoLib.csproj

    r3816 r3820  
    44    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    55    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    6     <ProductVersion>9.0.30729</ProductVersion>
     6    <ProductVersion>9.0.21022</ProductVersion>
    77    <SchemaVersion>2.0</SchemaVersion>
    88    <ProjectGuid>{9B390DE8-884A-433D-828A-C7B969F19924}</ProjectGuid>
     
    5959    <EmbeddedResource Include="Form1.resx">
    6060      <DependentUpon>Form1.cs</DependentUpon>
     61      <SubType>Designer</SubType>
    6162    </EmbeddedResource>
    6263    <EmbeddedResource Include="Properties\Resources.resx">
     
    6970      <DependentUpon>Resources.resx</DependentUpon>
    7071    </Compile>
     72    <None Include="app.config" />
    7173    <None Include="Properties\Settings.settings">
    7274      <Generator>SettingsSingleFileGenerator</Generator>
Note: See TracChangeset for help on using the changeset viewer.