mirror of
https://github.com/Nathanwoodburn/FireWallet.git
synced 2024-11-24 08:08:14 +11:00
splash: Added tmp splashscreen
This commit is contained in:
parent
d3b50b98f3
commit
6daf6c5fe9
@ -516,7 +516,8 @@ namespace FireWallet
|
||||
else if (b.method == "TRANSFER")
|
||||
{
|
||||
sw.WriteLine(b.domain + "," + b.method + "," + b.toAddress);
|
||||
} else if (b.method == "UPDATE")
|
||||
}
|
||||
else if (b.method == "UPDATE")
|
||||
{
|
||||
sw.WriteLine(b.domain + "," + b.method + ",[" + string.Join(", ", b.update.Select(record => record.ToString())) + "]");
|
||||
}
|
||||
|
@ -35,6 +35,7 @@ namespace FireWallet
|
||||
}
|
||||
private void MainForm_Load(object sender, EventArgs e)
|
||||
{
|
||||
timerNodeStatus.Stop();
|
||||
LoadSettings();
|
||||
|
||||
if (userSettings.ContainsKey("hide-splash"))
|
||||
@ -42,7 +43,9 @@ namespace FireWallet
|
||||
if (userSettings["hide-splash"] == "false")
|
||||
{
|
||||
// Show splash screen
|
||||
|
||||
SplashScreen ss = new SplashScreen();
|
||||
ss.ShowDialog();
|
||||
ss.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
@ -68,6 +71,8 @@ namespace FireWallet
|
||||
|
||||
AddLog("Loaded");
|
||||
batchMode = false;
|
||||
|
||||
timerNodeStatus.Start();
|
||||
}
|
||||
private void MainForm_Closing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
|
92
FireWallet/SplashScreen.Designer.cs
generated
Normal file
92
FireWallet/SplashScreen.Designer.cs
generated
Normal file
@ -0,0 +1,92 @@
|
||||
namespace FireWallet
|
||||
{
|
||||
partial class SplashScreen
|
||||
{
|
||||
/// <summary>
|
||||
/// Required designer variable.
|
||||
/// </summary>
|
||||
private System.ComponentModel.IContainer components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||
protected override void Dispose(bool disposing)
|
||||
{
|
||||
if (disposing && (components != null))
|
||||
{
|
||||
components.Dispose();
|
||||
}
|
||||
base.Dispose(disposing);
|
||||
}
|
||||
|
||||
#region Windows Form Designer generated code
|
||||
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
/// the contents of this method with the code editor.
|
||||
/// </summary>
|
||||
private void InitializeComponent()
|
||||
{
|
||||
components = new System.ComponentModel.Container();
|
||||
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(SplashScreen));
|
||||
timerSplashDelay = new System.Windows.Forms.Timer(components);
|
||||
label1 = new Label();
|
||||
pictureBox1 = new PictureBox();
|
||||
((System.ComponentModel.ISupportInitialize)pictureBox1).BeginInit();
|
||||
SuspendLayout();
|
||||
//
|
||||
// timerSplashDelay
|
||||
//
|
||||
timerSplashDelay.Enabled = true;
|
||||
timerSplashDelay.Interval = 3000;
|
||||
timerSplashDelay.Tick += timerSplashDelay_Tick;
|
||||
//
|
||||
// label1
|
||||
//
|
||||
label1.AutoSize = true;
|
||||
label1.Font = new Font("Segoe UI", 20F, FontStyle.Regular, GraphicsUnit.Point);
|
||||
label1.Location = new Point(209, 36);
|
||||
label1.Name = "label1";
|
||||
label1.Size = new Size(284, 37);
|
||||
label1.TabIndex = 0;
|
||||
label1.Text = "Welcome to FireWallet";
|
||||
//
|
||||
// pictureBox1
|
||||
//
|
||||
pictureBox1.Image = (Image)resources.GetObject("pictureBox1.Image");
|
||||
pictureBox1.Location = new Point(142, 76);
|
||||
pictureBox1.Name = "pictureBox1";
|
||||
pictureBox1.Size = new Size(411, 328);
|
||||
pictureBox1.SizeMode = PictureBoxSizeMode.Zoom;
|
||||
pictureBox1.TabIndex = 1;
|
||||
pictureBox1.TabStop = false;
|
||||
//
|
||||
// SplashScreen
|
||||
//
|
||||
AutoScaleDimensions = new SizeF(7F, 15F);
|
||||
AutoScaleMode = AutoScaleMode.Font;
|
||||
BackColor = Color.Black;
|
||||
ClientSize = new Size(749, 416);
|
||||
Controls.Add(pictureBox1);
|
||||
Controls.Add(label1);
|
||||
ForeColor = Color.FromArgb(142, 5, 194);
|
||||
FormBorderStyle = FormBorderStyle.None;
|
||||
Icon = (Icon)resources.GetObject("$this.Icon");
|
||||
Name = "SplashScreen";
|
||||
ShowInTaskbar = false;
|
||||
StartPosition = FormStartPosition.CenterScreen;
|
||||
Text = "FireWallet";
|
||||
FormClosing += SplashScreen_FormClosing;
|
||||
((System.ComponentModel.ISupportInitialize)pictureBox1).EndInit();
|
||||
ResumeLayout(false);
|
||||
PerformLayout();
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
private System.Windows.Forms.Timer timerSplashDelay;
|
||||
private Label label1;
|
||||
private PictureBox pictureBox1;
|
||||
}
|
||||
}
|
35
FireWallet/SplashScreen.cs
Normal file
35
FireWallet/SplashScreen.cs
Normal file
@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using System.Data;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
|
||||
namespace FireWallet
|
||||
{
|
||||
public partial class SplashScreen : Form
|
||||
{
|
||||
public SplashScreen()
|
||||
{
|
||||
InitializeComponent();
|
||||
close = false;
|
||||
}
|
||||
bool close;
|
||||
private void timerSplashDelay_Tick(object sender, EventArgs e)
|
||||
{
|
||||
close = true;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
private void SplashScreen_FormClosing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
if (!close)
|
||||
{
|
||||
e.Cancel = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
1611
FireWallet/SplashScreen.resx
Normal file
1611
FireWallet/SplashScreen.resx
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user