Changeset 3821 for extensions/PiwigoLib
- Timestamp:
- Sep 4, 2009, 11:58:13 AM (15 years ago)
- Location:
- extensions/PiwigoLib/TestPiwigoLib
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/PiwigoLib/TestPiwigoLib/Form1.Designer.cs
r3820 r3821 32 32 this.label1 = new System.Windows.Forms.Label(); 33 33 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(); 34 37 this.tbPassword = new System.Windows.Forms.TextBox(); 35 this.tbUser = new System.Windows.Forms.TextBox();36 38 this.SuspendLayout(); 37 39 // … … 41 43 this.button1.Name = "button1"; 42 44 this.button1.Size = new System.Drawing.Size(75, 23); 43 this.button1.TabIndex = 0;45 this.button1.TabIndex = 40; 44 46 this.button1.Text = "Tester"; 45 47 this.button1.UseVisualStyleBackColor = true; … … 49 51 // 50 52 this.label1.AutoSize = true; 51 this.label1.Location = new System.Drawing.Point(12, 15);53 this.label1.Location = new System.Drawing.Point(12, 40); 52 54 this.label1.Name = "label1"; 53 55 this.label1.Size = new System.Drawing.Size(29, 13); 54 this.label1.TabIndex = 3;56 this.label1.TabIndex = 20; 55 57 this.label1.Text = "User"; 56 58 // … … 58 60 // 59 61 this.label2.AutoSize = true; 60 this.label2.Location = new System.Drawing.Point(12, 41);62 this.label2.Location = new System.Drawing.Point(12, 66); 61 63 this.label2.Name = "label2"; 62 64 this.label2.Size = new System.Drawing.Size(53, 13); 63 this.label2.TabIndex = 4;65 this.label2.TabIndex = 30; 64 66 this.label2.Text = "Password"; 65 67 // 66 // tbPassword68 // label3 67 69 // 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; 76 85 // 77 86 // tbUser 78 87 // 79 88 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); 81 90 this.tbUser.Name = "tbUser"; 82 91 this.tbUser.Size = new System.Drawing.Size(138, 20); 83 this.tbUser.TabIndex = 1;92 this.tbUser.TabIndex = 21; 84 93 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; 85 104 // 86 105 // Form1 … … 89 108 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 90 109 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); 91 113 this.Controls.Add(this.label2); 92 114 this.Controls.Add(this.label1); 93 this.Controls.Add(this.tbPassword);94 115 this.Controls.Add(this.tbUser); 95 116 this.Controls.Add(this.button1); … … 97 118 this.Text = "Tester PiwigoLib"; 98 119 this.Load += new System.EventHandler(this.Form1_Load); 120 this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.Form1_FormClosing); 99 121 this.ResumeLayout(false); 100 122 this.PerformLayout(); … … 106 128 private System.Windows.Forms.Button button1; 107 129 private System.Windows.Forms.TextBox tbUser; 108 private System.Windows.Forms.TextBox tbPassword;109 130 private System.Windows.Forms.Label label1; 110 131 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; 111 135 } 112 136 } -
extensions/PiwigoLib/TestPiwigoLib/Form1.cs
r3820 r3821 30 30 { 31 31 PwgConfigProxy.PwgUserAgent = "TestPiwigoLib"; 32 PwgConfigProxy.PwgServeurUriBuilder.Host = "bayral.free.fr";32 PwgConfigProxy.PwgServeurUriBuilder.Host = tbServer.Text; 33 33 PwgConfigProxy.PwgServeurUriBuilder.Path = "phpwebgallery/ws.php"; 34 34 PwgConfigProxy.PwgServeurUriBuilder.Scheme = "http://"; … … 57 57 Console.WriteLine(ex.Message); 58 58 } 59 } 59 60 60 61 62 61 private void Form1_FormClosing(object sender, FormClosingEventArgs e) 62 { 63 global::TestPiwigoLib.Properties.Settings.Default.Save(); 63 64 } 64 65 } -
extensions/PiwigoLib/TestPiwigoLib/Properties/AssemblyInfo.cs
r3816 r3821 9 9 [assembly: AssemblyDescription("")] 10 10 [assembly: AssemblyConfiguration("")] 11 [assembly: AssemblyCompany(" ")]11 [assembly: AssemblyCompany("Piwigo")] 12 12 [assembly: AssemblyProduct("TestPiwigoLib")] 13 13 [assembly: AssemblyCopyright("Copyright © 2009")] -
extensions/PiwigoLib/TestPiwigoLib/Properties/Settings.Designer.cs
r3820 r3821 39 39 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 40 40 [global::System.Configuration.DefaultSettingValueAttribute("")] 41 public string PwdData {41 public string pwdData { 42 42 get { 43 return ((string)(this[" PwdData"]));43 return ((string)(this["pwdData"])); 44 44 } 45 45 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; 47 59 } 48 60 } -
extensions/PiwigoLib/TestPiwigoLib/Properties/Settings.settings
r3820 r3821 6 6 <Value Profile="(Default)" /> 7 7 </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"> 9 12 <Value Profile="(Default)" /> 10 13 </Setting> -
extensions/PiwigoLib/TestPiwigoLib/TestPiwigoLib.csproj
r3820 r3821 4 4 <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> 5 5 <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> 6 <ProductVersion>9.0. 21022</ProductVersion>6 <ProductVersion>9.0.30729</ProductVersion> 7 7 <SchemaVersion>2.0</SchemaVersion> 8 8 <ProjectGuid>{9B390DE8-884A-433D-828A-C7B969F19924}</ProjectGuid> … … 80 80 <DesignTimeSharedInput>True</DesignTimeSharedInput> 81 81 </Compile> 82 <Compile Include="Settings.cs" /> 82 83 </ItemGroup> 83 84 <ItemGroup>
Note: See TracChangeset
for help on using the changeset viewer.