更新了UILoginForm图片,可以放置Logo

This commit is contained in:
Sunny 2020-06-20 21:37:38 +08:00
parent 4c046a2002
commit 91b8bead39
13 changed files with 37 additions and 3228 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -28,27 +28,44 @@
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FLogin));
this.pictureBox1 = new System.Windows.Forms.PictureBox();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout();
//
// lblTitle
//
this.lblTitle.Text = "SunnyUI Login Form";
this.lblTitle.Text = "SunnyUI.Net Login Form";
//
// pictureBox1
//
this.pictureBox1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(171)))), ((int)(((byte)(208)))), ((int)(((byte)(250)))));
this.pictureBox1.Image = global::Sunny.UI.Demo.Properties.Resources.SunnyLogin;
this.pictureBox1.Location = new System.Drawing.Point(183, 212);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(71, 71);
this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.AutoSize;
this.pictureBox1.TabIndex = 9;
this.pictureBox1.TabStop = false;
//
// FLogin
//
this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 21F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
this.ClientSize = new System.Drawing.Size(750, 450);
this.Controls.Add(this.pictureBox1);
this.Name = "FLogin";
this.Text = "SunnyUI Login Form";
this.Text = "SunnyUI.Net Login Form";
this.ButtonLoginClick += new System.EventHandler(this.FLogin_ButtonLoginClick);
this.Controls.SetChildIndex(this.lblTitle, 0);
this.Controls.SetChildIndex(this.pictureBox1, 0);
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.PictureBox pictureBox1;
}
}

View File

@ -1,6 +1,4 @@
using System;
namespace Sunny.UI.Demo.Forms
namespace Sunny.UI.Demo.Forms
{
public partial class FLogin : UILoginForm
{
@ -9,7 +7,7 @@ namespace Sunny.UI.Demo.Forms
InitializeComponent();
}
private void FLogin_ButtonLoginClick(object sender, EventArgs e)
private void FLogin_ButtonLoginClick(object sender, System.EventArgs e)
{
if (UserName == "admin" && Password == "admin")
{

File diff suppressed because it is too large Load Diff

View File

@ -290,6 +290,16 @@ namespace Sunny.UI.Demo.Properties {
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap SunnyLogin {
get {
object obj = ResourceManager.GetObject("SunnyLogin", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>

View File

@ -187,6 +187,9 @@
<data name="save0" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\save0.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="SunnyLogin" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\SunnyLogin.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="SunnyUI" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\SunnyUI.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

@ -445,6 +445,7 @@
<None Include="Resources\ChartDarkStyle.png" />
<None Include="Resources\ChartDefaultStyle.png" />
<None Include="Resources\ChartPlainStyle.png" />
<None Include="Resources\SunnyLogin.png" />
<Content Include="SunnyUI.ico" />
</ItemGroup>
<ItemGroup />

Binary file not shown.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 166 KiB

After

Width:  |  Height:  |  Size: 93 KiB