Changeset 3820 for extensions/PiwigoLib
- Timestamp:
- Sep 3, 2009, 10:47:19 PM (15 years ago)
- Location:
- extensions/PiwigoLib/TestPiwigoLib
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/PiwigoLib/TestPiwigoLib/Form1.Designer.cs
r3819 r3820 30 30 { 31 31 this.button1 = new System.Windows.Forms.Button(); 32 this.tbUser = new System.Windows.Forms.TextBox();33 this.tbPassword = new System.Windows.Forms.TextBox();34 32 this.label1 = new System.Windows.Forms.Label(); 35 33 this.label2 = new System.Windows.Forms.Label(); 34 this.tbPassword = new System.Windows.Forms.TextBox(); 35 this.tbUser = new System.Windows.Forms.TextBox(); 36 36 this.SuspendLayout(); 37 37 // … … 45 45 this.button1.UseVisualStyleBackColor = true; 46 46 this.button1.Click += new System.EventHandler(this.button1_Click); 47 //48 // tbUser49 //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 // tbPassword56 //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;63 47 // 64 48 // label1 … … 80 64 this.label2.Text = "Password"; 81 65 // 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 // 82 86 // Form1 83 87 // … … 91 95 this.Controls.Add(this.button1); 92 96 this.Name = "Form1"; 93 this.Text = " Form1";97 this.Text = "Tester PiwigoLib"; 94 98 this.Load += new System.EventHandler(this.Form1_Load); 95 99 this.ResumeLayout(false); -
extensions/PiwigoLib/TestPiwigoLib/Form1.cs
r3819 r3820 45 45 Console.WriteLine("user : " + sess.UserName + " " + sess.Status); 46 46 47 Boolean rc = PwgTagsService.AddTag("Loic");47 //Boolean rc = PwgTagsService.AddTag("Loic"); 48 48 49 List<PwgTag> lstTag = PwgTagsService.GetAdminListOfTag();49 //List<PwgTag> lstTag = PwgTagsService.GetAdminListOfTag(); 50 50 51 51 sess = PwgSessionService.Logout(); 52 Console.WriteLine("user : " + sess.UserName + " " + sess.Status);53 54 sess = PwgSessionService.Login(tbUser.Text, tbPassword.Text);55 52 Console.WriteLine("user : " + sess.UserName + " " + sess.Status); 56 53 } … … 58 55 { 59 56 Console.WriteLine("Erreur " + ex.NumeroErr + " " + ex.MessageErr); 57 Console.WriteLine(ex.Message); 60 58 } 61 59 -
extensions/PiwigoLib/TestPiwigoLib/Properties/Settings.Designer.cs
r3816 r3820 1 1 //------------------------------------------------------------------------------ 2 2 // <auto-generated> 3 // This code was generated by a tool.4 // Runtime Version:2.0.50727.30823 // Ce code a été généré par un outil. 4 // Version du runtime :2.0.50727.3082 5 5 // 6 // Changes to this file may cause incorrect behavior and will be lost if7 // 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é. 8 8 // </auto-generated> 9 9 //------------------------------------------------------------------------------ 10 10 11 namespace TestPiwigoLib.Properties 12 { 13 14 11 namespace TestPiwigoLib.Properties { 12 13 15 14 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 16 15 [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 20 18 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 { 26 22 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; 27 47 } 28 48 } -
extensions/PiwigoLib/TestPiwigoLib/Properties/Settings.settings
r3816 r3820 1 1 <?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> 7 12 </SettingsFile> -
extensions/PiwigoLib/TestPiwigoLib/TestPiwigoLib.csproj
r3816 r3820 4 4 <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> 5 5 <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> 6 <ProductVersion>9.0. 30729</ProductVersion>6 <ProductVersion>9.0.21022</ProductVersion> 7 7 <SchemaVersion>2.0</SchemaVersion> 8 8 <ProjectGuid>{9B390DE8-884A-433D-828A-C7B969F19924}</ProjectGuid> … … 59 59 <EmbeddedResource Include="Form1.resx"> 60 60 <DependentUpon>Form1.cs</DependentUpon> 61 <SubType>Designer</SubType> 61 62 </EmbeddedResource> 62 63 <EmbeddedResource Include="Properties\Resources.resx"> … … 69 70 <DependentUpon>Resources.resx</DependentUpon> 70 71 </Compile> 72 <None Include="app.config" /> 71 73 <None Include="Properties\Settings.settings"> 72 74 <Generator>SettingsSingleFileGenerator</Generator>
Note: See TracChangeset
for help on using the changeset viewer.