Changeset 3821 for extensions/PiwigoLib


Ignore:
Timestamp:
Sep 4, 2009, 11:58:13 AM (15 years ago)
Author:
bayral
Message:

correct Test Windows

Location:
extensions/PiwigoLib/TestPiwigoLib
Files:
2 added
6 edited

Legend:

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

    r3820 r3821  
    3232            this.label1 = new System.Windows.Forms.Label();
    3333            this.label2 = new System.Windows.Forms.Label();
     34            this.label3 = new System.Windows.Forms.Label();
     35            this.tbServer = new System.Windows.Forms.TextBox();
     36            this.tbUser = new System.Windows.Forms.TextBox();
    3437            this.tbPassword = new System.Windows.Forms.TextBox();
    35             this.tbUser = new System.Windows.Forms.TextBox();
    3638            this.SuspendLayout();
    3739            //
     
    4143            this.button1.Name = "button1";
    4244            this.button1.Size = new System.Drawing.Size(75, 23);
    43             this.button1.TabIndex = 0;
     45            this.button1.TabIndex = 40;
    4446            this.button1.Text = "Tester";
    4547            this.button1.UseVisualStyleBackColor = true;
     
    4951            //
    5052            this.label1.AutoSize = true;
    51             this.label1.Location = new System.Drawing.Point(12, 15);
     53            this.label1.Location = new System.Drawing.Point(12, 40);
    5254            this.label1.Name = "label1";
    5355            this.label1.Size = new System.Drawing.Size(29, 13);
    54             this.label1.TabIndex = 3;
     56            this.label1.TabIndex = 20;
    5557            this.label1.Text = "User";
    5658            //
     
    5860            //
    5961            this.label2.AutoSize = true;
    60             this.label2.Location = new System.Drawing.Point(12, 41);
     62            this.label2.Location = new System.Drawing.Point(12, 66);
    6163            this.label2.Name = "label2";
    6264            this.label2.Size = new System.Drawing.Size(53, 13);
    63             this.label2.TabIndex = 4;
     65            this.label2.TabIndex = 30;
    6466            this.label2.Text = "Password";
    6567            //
    66             // tbPassword
     68            // label3
    6769            //
    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;
     70            this.label3.AutoSize = true;
     71            this.label3.Location = new System.Drawing.Point(12, 14);
     72            this.label3.Name = "label3";
     73            this.label3.Size = new System.Drawing.Size(38, 13);
     74            this.label3.TabIndex = 10;
     75            this.label3.Text = "Server";
     76            //
     77            // tbServer
     78            //
     79            this.tbServer.DataBindings.Add(new System.Windows.Forms.Binding("Text", global::TestPiwigoLib.Properties.Settings.Default, "serverUrlData", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
     80            this.tbServer.Location = new System.Drawing.Point(68, 11);
     81            this.tbServer.Name = "tbServer";
     82            this.tbServer.Size = new System.Drawing.Size(138, 20);
     83            this.tbServer.TabIndex = 11;
     84            this.tbServer.Text = global::TestPiwigoLib.Properties.Settings.Default.serverUrlData;
    7685            //
    7786            // tbUser
    7887            //
    7988            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);
     89            this.tbUser.Location = new System.Drawing.Point(68, 37);
    8190            this.tbUser.Name = "tbUser";
    8291            this.tbUser.Size = new System.Drawing.Size(138, 20);
    83             this.tbUser.TabIndex = 1;
     92            this.tbUser.TabIndex = 21;
    8493            this.tbUser.Text = global::TestPiwigoLib.Properties.Settings.Default.userData;
     94            //
     95            // tbPassword
     96            //
     97            this.tbPassword.DataBindings.Add(new System.Windows.Forms.Binding("Text", global::TestPiwigoLib.Properties.Settings.Default, "pwdData", true, System.Windows.Forms.DataSourceUpdateMode.OnPropertyChanged));
     98            this.tbPassword.Location = new System.Drawing.Point(68, 63);
     99            this.tbPassword.Name = "tbPassword";
     100            this.tbPassword.PasswordChar = '*';
     101            this.tbPassword.Size = new System.Drawing.Size(138, 20);
     102            this.tbPassword.TabIndex = 31;
     103            this.tbPassword.Text = global::TestPiwigoLib.Properties.Settings.Default.pwdData;
    85104            //
    86105            // Form1
     
    89108            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
    90109            this.ClientSize = new System.Drawing.Size(221, 143);
     110            this.Controls.Add(this.tbPassword);
     111            this.Controls.Add(this.label3);
     112            this.Controls.Add(this.tbServer);
    91113            this.Controls.Add(this.label2);
    92114            this.Controls.Add(this.label1);
    93             this.Controls.Add(this.tbPassword);
    94115            this.Controls.Add(this.tbUser);
    95116            this.Controls.Add(this.button1);
     
    97118            this.Text = "Tester PiwigoLib";
    98119            this.Load += new System.EventHandler(this.Form1_Load);
     120            this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing);
    99121            this.ResumeLayout(false);
    100122            this.PerformLayout();
     
    106128        private System.Windows.Forms.Button button1;
    107129        private System.Windows.Forms.TextBox tbUser;
    108         private System.Windows.Forms.TextBox tbPassword;
    109130        private System.Windows.Forms.Label label1;
    110131        private System.Windows.Forms.Label label2;
     132        private System.Windows.Forms.Label label3;
     133        private System.Windows.Forms.TextBox tbServer;
     134        private System.Windows.Forms.TextBox tbPassword;
    111135    }
    112136}
  • extensions/PiwigoLib/TestPiwigoLib/Form1.cs

    r3820 r3821  
    3030        {
    3131            PwgConfigProxy.PwgUserAgent = "TestPiwigoLib";
    32             PwgConfigProxy.PwgServeurUriBuilder.Host = "bayral.free.fr";
     32            PwgConfigProxy.PwgServeurUriBuilder.Host = tbServer.Text;
    3333            PwgConfigProxy.PwgServeurUriBuilder.Path = "phpwebgallery/ws.php";
    3434            PwgConfigProxy.PwgServeurUriBuilder.Scheme = "http://";
     
    5757                Console.WriteLine(ex.Message);
    5858            }
     59        }
    5960
    60            
    61 
    62 
     61        private void Form1_FormClosing(object sender, FormClosingEventArgs e)
     62        {
     63            global::TestPiwigoLib.Properties.Settings.Default.Save();
    6364        }
    6465    }
  • extensions/PiwigoLib/TestPiwigoLib/Properties/AssemblyInfo.cs

    r3816 r3821  
    99[assembly: AssemblyDescription("")]
    1010[assembly: AssemblyConfiguration("")]
    11 [assembly: AssemblyCompany("")]
     11[assembly: AssemblyCompany("Piwigo")]
    1212[assembly: AssemblyProduct("TestPiwigoLib")]
    1313[assembly: AssemblyCopyright("Copyright ©  2009")]
  • extensions/PiwigoLib/TestPiwigoLib/Properties/Settings.Designer.cs

    r3820 r3821  
    3939        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
    4040        [global::System.Configuration.DefaultSettingValueAttribute("")]
    41         public string PwdData {
     41        public string pwdData {
    4242            get {
    43                 return ((string)(this["PwdData"]));
     43                return ((string)(this["pwdData"]));
    4444            }
    4545            set {
    46                 this["PwdData"] = value;
     46                this["pwdData"] = value;
     47            }
     48        }
     49       
     50        [global::System.Configuration.UserScopedSettingAttribute()]
     51        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
     52        [global::System.Configuration.DefaultSettingValueAttribute("")]
     53        public string serverUrlData {
     54            get {
     55                return ((string)(this["serverUrlData"]));
     56            }
     57            set {
     58                this["serverUrlData"] = value;
    4759            }
    4860        }
  • extensions/PiwigoLib/TestPiwigoLib/Properties/Settings.settings

    r3820 r3821  
    66      <Value Profile="(Default)" />
    77    </Setting>
    8     <Setting Name="PwdData" Type="System.String" Scope="User">
     8    <Setting Name="pwdData" Type="System.String" Scope="User">
     9      <Value Profile="(Default)" />
     10    </Setting>
     11    <Setting Name="serverUrlData" Type="System.String" Scope="User">
    912      <Value Profile="(Default)" />
    1013    </Setting>
  • extensions/PiwigoLib/TestPiwigoLib/TestPiwigoLib.csproj

    r3820 r3821  
    44    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    55    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    6     <ProductVersion>9.0.21022</ProductVersion>
     6    <ProductVersion>9.0.30729</ProductVersion>
    77    <SchemaVersion>2.0</SchemaVersion>
    88    <ProjectGuid>{9B390DE8-884A-433D-828A-C7B969F19924}</ProjectGuid>
     
    8080      <DesignTimeSharedInput>True</DesignTimeSharedInput>
    8181    </Compile>
     82    <Compile Include="Settings.cs" />
    8283  </ItemGroup>
    8384  <ItemGroup>
Note: See TracChangeset for help on using the changeset viewer.