AppConstant - Add Constant: DEFAULT_LOGO_IMAGE
This commit is contained in:
parent
92e57da18c
commit
2c5c923fc9
|
@ -9,5 +9,6 @@
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
public const string CAMERA_FAILED_IMAGE_PATH = @"Images\CantConnectCamera.jpg";
|
public const string CAMERA_FAILED_IMAGE_PATH = @"Images\CantConnectCamera.jpg";
|
||||||
|
public const string DEFAULT_LOGO_IMAGE = @".\Images\ApplicationLogo.ico";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
|
using System.IO;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
|
||||||
namespace AIParkingApplication
|
namespace AIParkingApplication
|
||||||
|
@ -10,7 +11,10 @@ namespace AIParkingApplication
|
||||||
public LoginForm()
|
public LoginForm()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
pictureBoxImageLogo.Image = new Bitmap(@".\Images\ApplicationLogo.ico");
|
if (File.Exists(AppConstant.DEFAULT_LOGO_IMAGE))
|
||||||
|
{
|
||||||
|
pictureBoxImageLogo.Image = new Bitmap(AppConstant.DEFAULT_LOGO_IMAGE);
|
||||||
|
}
|
||||||
txtUsername.Focus();
|
txtUsername.Focus();
|
||||||
lblLoginStatus.Text = string.Empty;
|
lblLoginStatus.Text = string.Empty;
|
||||||
this.AcceptButton = btnLogin;
|
this.AcceptButton = btnLogin;
|
||||||
|
|
|
@ -9,7 +9,7 @@ namespace AIParkingApplication
|
||||||
{
|
{
|
||||||
private Statistic statistic;
|
private Statistic statistic;
|
||||||
|
|
||||||
public Sidebar(ApiController apiController, string logoImagePath = @".\Images\ApplicationLogo.ico")
|
public Sidebar(ApiController apiController, string logoImagePath = AppConstant.DEFAULT_LOGO_IMAGE)
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
if (File.Exists(logoImagePath))
|
if (File.Exists(logoImagePath))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user