splashscreen: Fix sizing and added link

- Added a new label2 control to the designer file
- Created a new event handler for the label2_Click method in SplashScreen.cs
- Implemented ProcessStartInfo and Process.Start() methods to open website
This commit is contained in:
Nathan Woodburn 2023-06-08 21:04:10 +10:00
parent 9d0db3193c
commit b71a5f7290
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1
2 changed files with 31 additions and 4 deletions

View File

@ -33,6 +33,7 @@
timerSplashDelay = new System.Windows.Forms.Timer(components); timerSplashDelay = new System.Windows.Forms.Timer(components);
label1 = new Label(); label1 = new Label();
pictureBox1 = new PictureBox(); pictureBox1 = new PictureBox();
label2 = new Label();
((System.ComponentModel.ISupportInitialize)pictureBox1).BeginInit(); ((System.ComponentModel.ISupportInitialize)pictureBox1).BeginInit();
SuspendLayout(); SuspendLayout();
// //
@ -46,7 +47,7 @@
// //
label1.AutoSize = true; label1.AutoSize = true;
label1.Font = new Font("Segoe UI", 20F, FontStyle.Regular, GraphicsUnit.Point); label1.Font = new Font("Segoe UI", 20F, FontStyle.Regular, GraphicsUnit.Point);
label1.Location = new Point(209, 36); label1.Location = new Point(80, 9);
label1.Name = "label1"; label1.Name = "label1";
label1.Size = new Size(284, 37); label1.Size = new Size(284, 37);
label1.TabIndex = 0; label1.TabIndex = 0;
@ -54,20 +55,33 @@
// //
// pictureBox1 // pictureBox1
// //
pictureBox1.BackColor = Color.Transparent;
pictureBox1.Image = (Image)resources.GetObject("pictureBox1.Image"); pictureBox1.Image = (Image)resources.GetObject("pictureBox1.Image");
pictureBox1.Location = new Point(142, 76); pictureBox1.Location = new Point(12, 58);
pictureBox1.Name = "pictureBox1"; pictureBox1.Name = "pictureBox1";
pictureBox1.Size = new Size(411, 328); pictureBox1.Size = new Size(420, 330);
pictureBox1.SizeMode = PictureBoxSizeMode.Zoom; pictureBox1.SizeMode = PictureBoxSizeMode.Zoom;
pictureBox1.TabIndex = 1; pictureBox1.TabIndex = 1;
pictureBox1.TabStop = false; pictureBox1.TabStop = false;
// //
// label2
//
label2.AutoSize = true;
label2.Font = new Font("Segoe UI", 11F, FontStyle.Regular, GraphicsUnit.Point);
label2.Location = new Point(154, 400);
label2.Name = "label2";
label2.Size = new Size(136, 20);
label2.TabIndex = 2;
label2.Text = "Nathan.Woodburn/";
label2.Click += label2_Click;
//
// SplashScreen // SplashScreen
// //
AutoScaleDimensions = new SizeF(7F, 15F); AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font; AutoScaleMode = AutoScaleMode.Font;
BackColor = Color.Black; BackColor = Color.Black;
ClientSize = new Size(749, 416); ClientSize = new Size(444, 435);
Controls.Add(label2);
Controls.Add(pictureBox1); Controls.Add(pictureBox1);
Controls.Add(label1); Controls.Add(label1);
ForeColor = Color.FromArgb(142, 5, 194); ForeColor = Color.FromArgb(142, 5, 194);
@ -77,6 +91,7 @@
ShowInTaskbar = false; ShowInTaskbar = false;
StartPosition = FormStartPosition.CenterScreen; StartPosition = FormStartPosition.CenterScreen;
Text = "FireWallet"; Text = "FireWallet";
TopMost = true;
FormClosing += SplashScreen_FormClosing; FormClosing += SplashScreen_FormClosing;
((System.ComponentModel.ISupportInitialize)pictureBox1).EndInit(); ((System.ComponentModel.ISupportInitialize)pictureBox1).EndInit();
ResumeLayout(false); ResumeLayout(false);
@ -88,5 +103,6 @@
private System.Windows.Forms.Timer timerSplashDelay; private System.Windows.Forms.Timer timerSplashDelay;
private Label label1; private Label label1;
private PictureBox pictureBox1; private PictureBox pictureBox1;
private Label label2;
} }
} }

View File

@ -2,6 +2,7 @@
using System.Collections.Generic; using System.Collections.Generic;
using System.ComponentModel; using System.ComponentModel;
using System.Data; using System.Data;
using System.Diagnostics;
using System.Drawing; using System.Drawing;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
@ -31,5 +32,15 @@ namespace FireWallet
e.Cancel = true; e.Cancel = true;
} }
} }
private void label2_Click(object sender, EventArgs e)
{
ProcessStartInfo psi = new ProcessStartInfo
{
FileName = "https://nathan.woodburn.au",
UseShellExecute = true
};
Process.Start(psi);
}
} }
} }