* UILoginForm:更新显示版本

This commit is contained in:
Sunny 2021-03-03 21:47:50 +08:00
parent 8f998a8297
commit 518f04bc8c
8 changed files with 697 additions and 691 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -170,7 +170,7 @@ namespace Sunny.UI.Demo
frm.ShowInTaskbar = true; frm.ShowInTaskbar = true;
frm.Text = "Login"; frm.Text = "Login";
frm.Title = "SunnyUI.Net Login Form"; frm.Title = "SunnyUI.Net Login Form";
frm.SubText = "SunnyUI.Net V2.2.5"; frm.SubText = Version;
frm.OnLogin += Frm_OnLogin; frm.OnLogin += Frm_OnLogin;
frm.LoginImage = UILoginForm.UILoginImage.Login2; frm.LoginImage = UILoginForm.UILoginImage.Login2;
frm.ShowDialog(); frm.ShowDialog();

View File

@ -35,6 +35,10 @@
// //
this.lblTitle.Text = "SunnyUI.Net Login Form"; this.lblTitle.Text = "SunnyUI.Net Login Form";
// //
// lblSubText
//
this.lblSubText.Text = "SunnyUI.Net";
//
// FLogin // FLogin
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 21F); this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 21F);
@ -43,10 +47,11 @@
this.ClientSize = new System.Drawing.Size(750, 450); this.ClientSize = new System.Drawing.Size(750, 450);
this.LoginImage = Sunny.UI.UILoginForm.UILoginImage.Login6; this.LoginImage = Sunny.UI.UILoginForm.UILoginImage.Login6;
this.Name = "FLogin"; this.Name = "FLogin";
this.SubText = "SunnyUI.Net";
this.Text = "SunnyUI.Net Login Form"; this.Text = "SunnyUI.Net Login Form";
this.Title = "SunnyUI.Net Login Form";
this.ButtonLoginClick += new System.EventHandler(this.FLogin_ButtonLoginClick); this.ButtonLoginClick += new System.EventHandler(this.FLogin_ButtonLoginClick);
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout();
} }

File diff suppressed because it is too large Load Diff

View File

@ -11,6 +11,7 @@ namespace Sunny.UI
public UILoginForm() public UILoginForm()
{ {
InitializeComponent(); InitializeComponent();
lblSubText.Text = lblSubText.Version;
} }
public string Title public string Title
@ -43,7 +44,7 @@ namespace Sunny.UI
if (loginImage == UILoginImage.Login4) BackgroundImage = Resources.Login4; if (loginImage == UILoginImage.Login4) BackgroundImage = Resources.Login4;
if (loginImage == UILoginImage.Login5) BackgroundImage = Resources.Login5; if (loginImage == UILoginImage.Login5) BackgroundImage = Resources.Login5;
if (loginImage == UILoginImage.Login6) BackgroundImage = Resources.Login6; if (loginImage == UILoginImage.Login6) BackgroundImage = Resources.Login6;
} }
} }
} }
@ -106,4 +107,4 @@ namespace Sunny.UI
set => edtPassword.Text = value; set => edtPassword.Text = value;
} }
} }
} }