Add ApplicationLogo. Sidebar - Fixed Default Image Path.
This commit is contained in:
parent
9e9875123d
commit
f56206d5c2
|
@ -186,6 +186,9 @@
|
|||
<None Include="App.config" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="Images\ApplicationLogo.ico">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
<Content Include="Images\CantConnectCamera.jpg">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
</Content>
|
||||
|
|
BIN
AIParkingApplication/Images/ApplicationLogo.ico
Normal file
BIN
AIParkingApplication/Images/ApplicationLogo.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 150 KiB |
|
@ -9,7 +9,7 @@ namespace AIParkingApplication
|
|||
{
|
||||
private Statistic statistic;
|
||||
|
||||
public Sidebar(ApiController apiController, string logoImagePath = @"C:\Users\B.I\Desktop\photo_2020-06-25_21-22-56.jpg")
|
||||
public Sidebar(ApiController apiController, string logoImagePath = @".\Images\ApplicationLogo.ico")
|
||||
{
|
||||
InitializeComponent();
|
||||
if (File.Exists(logoImagePath))
|
||||
|
@ -17,7 +17,6 @@ namespace AIParkingApplication
|
|||
PictureBox pictureBoxImageLogo;
|
||||
pictureBoxImageLogo = new PictureBox();
|
||||
pictureBoxImageLogo.Location = new Point(1, 1);
|
||||
pictureBoxImageLogo.BorderStyle = BorderStyle.FixedSingle;
|
||||
pictureBoxImageLogo.Size = new Size(185, 185);
|
||||
pictureBoxImageLogo.SizeMode = PictureBoxSizeMode.StretchImage;
|
||||
pictureBoxImageLogo.Image = new Bitmap(logoImagePath);
|
||||
|
|
Loading…
Reference in New Issue
Block a user