5 Commits

11 changed files with 2118 additions and 65 deletions

View File

@@ -517,6 +517,10 @@ namespace FireWallet
{
sw.WriteLine(b.domain + "," + b.method + "," + b.toAddress);
}
else if (b.method == "UPDATE")
{
sw.WriteLine(b.domain + "," + b.method + ",[" + string.Join(", ", b.update.Select(record => record.ToString())) + "]");
}
else
{
sw.WriteLine(b.domain + "," + b.method);
@@ -541,6 +545,22 @@ namespace FireWallet
string[] split = line.Split(',');
try
{
if (split.Length > 2)
{
if (split[1] == "UPDATE")
{
// Select operation and import domains
string[] newDomains = new string[domains.Length + 1];
for (int i = 0; i < domains.Length; i++)
{
newDomains[i] = domains[i];
}
newDomains[domains.Length] = split[0];
domains = newDomains;
continue;
}
}
if (split.Length == 2)
{
AddBatch(split[0], split[1]);
@@ -648,7 +668,7 @@ namespace FireWallet
public decimal bid { get; }
public decimal lockup { get; }
public string toAddress { get; }
DNS[]? update;
public DNS[]? update { get; }
public Batch(string domain, string method) // Normal TXs
{
this.domain = domain;

View File

@@ -67,21 +67,23 @@
// buttonAddRecord
//
buttonAddRecord.FlatStyle = FlatStyle.Flat;
buttonAddRecord.Location = new Point(6, 163);
buttonAddRecord.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point);
buttonAddRecord.Location = new Point(6, 172);
buttonAddRecord.Name = "buttonAddRecord";
buttonAddRecord.Size = new Size(93, 46);
buttonAddRecord.TabIndex = 1;
buttonAddRecord.TabStop = false;
buttonAddRecord.Text = "Add Record";
buttonAddRecord.Text = "Add ";
buttonAddRecord.UseVisualStyleBackColor = true;
buttonAddRecord.Click += buttonAddRecord_Click;
//
// buttonCancel
//
buttonCancel.FlatStyle = FlatStyle.Flat;
buttonCancel.Location = new Point(557, 500);
buttonCancel.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point);
buttonCancel.Location = new Point(566, 500);
buttonCancel.Name = "buttonCancel";
buttonCancel.Size = new Size(93, 46);
buttonCancel.Size = new Size(102, 46);
buttonCancel.TabIndex = 1;
buttonCancel.TabStop = false;
buttonCancel.Text = "Cancel Edit";
@@ -91,9 +93,10 @@
// buttonSend
//
buttonSend.FlatStyle = FlatStyle.Flat;
buttonSend.Location = new Point(888, 500);
buttonSend.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point);
buttonSend.Location = new Point(879, 500);
buttonSend.Name = "buttonSend";
buttonSend.Size = new Size(93, 46);
buttonSend.Size = new Size(102, 46);
buttonSend.TabIndex = 1;
buttonSend.TabStop = false;
buttonSend.Text = "Send Edit";

View File

@@ -30,6 +30,7 @@ namespace FireWallet
nodeSettings = mainForm.nodeSettings;
cancel = true;
this.Text = domain + "/ DNS | FireWallet";
}
private void DNSForm_Load(object sender, EventArgs e)
{

View File

@@ -292,6 +292,12 @@ namespace FireWallet
labelStatusTimeToNext.Text = reveal;
labelStatusNextState.Text = "Closing in:";
}
else if (state == "OPENING")
{
labelStatusNextState.Text = "Bidding in:";
string expires = stats["blocksUntilBidding"].ToString() + " Blocks (~" + stats["hoursUntilBidding"].ToString() + " hrs)";
labelStatusTimeToNext.Text = expires;
}
else
{
AddLog("State not added yet: " + state);

View File

@@ -51,6 +51,7 @@ namespace FireWallet
labelaccountusername = new Label();
buttonaccountnew = new Button();
panelNav = new Panel();
buttonNavSettings = new Button();
buttonBatch = new Button();
buttonNavDomains = new Button();
buttonNavReceive = new Button();
@@ -88,6 +89,25 @@ namespace FireWallet
panelDomainList = new Panel();
labelDomainSearch = new Label();
textBoxDomainSearch = new TextBox();
panelSettings = new Panel();
groupBoxSettingsMisc = new GroupBox();
labelSettings6 = new Label();
numericUpDownConfirmations = new NumericUpDown();
labelSettings5 = new Label();
labelSettingsSaved = new Label();
buttonSettingsSave = new Button();
groupBoxSettingsExplorer = new GroupBox();
labelSettings1 = new Label();
textBoxExName = new TextBox();
labelSettings2 = new Label();
textBoxExBlock = new TextBox();
labelSettings3 = new Label();
textBoxExAddr = new TextBox();
labelSettings4 = new Label();
textBoxExTX = new TextBox();
labelSettings7 = new Label();
numericUpDownTXCount = new NumericUpDown();
labelSettings8 = new Label();
statusStripmain.SuspendLayout();
panelaccount.SuspendLayout();
groupBoxaccount.SuspendLayout();
@@ -100,6 +120,11 @@ namespace FireWallet
((System.ComponentModel.ISupportInitialize)pictureBoxReceiveQR).BeginInit();
panelDomains.SuspendLayout();
groupBoxDomains.SuspendLayout();
panelSettings.SuspendLayout();
groupBoxSettingsMisc.SuspendLayout();
((System.ComponentModel.ISupportInitialize)numericUpDownConfirmations).BeginInit();
groupBoxSettingsExplorer.SuspendLayout();
((System.ComponentModel.ISupportInitialize)numericUpDownTXCount).BeginInit();
SuspendLayout();
//
// statusStripmain
@@ -255,6 +280,7 @@ namespace FireWallet
//
// panelNav
//
panelNav.Controls.Add(buttonNavSettings);
panelNav.Controls.Add(buttonBatch);
panelNav.Controls.Add(buttonNavDomains);
panelNav.Controls.Add(buttonNavReceive);
@@ -266,6 +292,19 @@ namespace FireWallet
panelNav.Size = new Size(114, 553);
panelNav.TabIndex = 6;
//
// buttonNavSettings
//
buttonNavSettings.FlatStyle = FlatStyle.Flat;
buttonNavSettings.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point);
buttonNavSettings.Location = new Point(12, 508);
buttonNavSettings.Name = "buttonNavSettings";
buttonNavSettings.Size = new Size(89, 33);
buttonNavSettings.TabIndex = 4;
buttonNavSettings.TabStop = false;
buttonNavSettings.Text = "Settings";
buttonNavSettings.UseVisualStyleBackColor = true;
buttonNavSettings.Click += buttonNavSettings_Click;
//
// buttonBatch
//
buttonBatch.FlatStyle = FlatStyle.Flat;
@@ -628,7 +667,7 @@ namespace FireWallet
panelDomains.Controls.Add(groupBoxDomains);
panelDomains.Controls.Add(labelDomainSearch);
panelDomains.Controls.Add(textBoxDomainSearch);
panelDomains.Location = new Point(120, 27);
panelDomains.Location = new Point(1129, 22);
panelDomains.Name = "panelDomains";
panelDomains.Size = new Size(920, 536);
panelDomains.TabIndex = 18;
@@ -674,11 +713,196 @@ namespace FireWallet
textBoxDomainSearch.TextChanged += textBoxDomainSearch_TextChanged;
textBoxDomainSearch.KeyDown += textBoxDomainSearch_KeyDown;
//
// panelSettings
//
panelSettings.Controls.Add(groupBoxSettingsMisc);
panelSettings.Controls.Add(labelSettingsSaved);
panelSettings.Controls.Add(buttonSettingsSave);
panelSettings.Controls.Add(groupBoxSettingsExplorer);
panelSettings.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point);
panelSettings.Location = new Point(121, 21);
panelSettings.Name = "panelSettings";
panelSettings.Size = new Size(930, 550);
panelSettings.TabIndex = 19;
panelSettings.Visible = false;
//
// groupBoxSettingsMisc
//
groupBoxSettingsMisc.Controls.Add(labelSettings8);
groupBoxSettingsMisc.Controls.Add(labelSettings6);
groupBoxSettingsMisc.Controls.Add(numericUpDownTXCount);
groupBoxSettingsMisc.Controls.Add(labelSettings7);
groupBoxSettingsMisc.Controls.Add(numericUpDownConfirmations);
groupBoxSettingsMisc.Controls.Add(labelSettings5);
groupBoxSettingsMisc.Location = new Point(14, 210);
groupBoxSettingsMisc.Name = "groupBoxSettingsMisc";
groupBoxSettingsMisc.Size = new Size(487, 194);
groupBoxSettingsMisc.TabIndex = 7;
groupBoxSettingsMisc.TabStop = false;
groupBoxSettingsMisc.Text = "Misc Settings";
//
// labelSettings6
//
labelSettings6.AutoSize = true;
labelSettings6.Location = new Point(255, 36);
labelSettings6.Name = "labelSettings6";
labelSettings6.Size = new Size(54, 21);
labelSettings6.TabIndex = 2;
labelSettings6.Text = "blocks";
//
// numericUpDownConfirmations
//
numericUpDownConfirmations.Location = new Point(129, 34);
numericUpDownConfirmations.Maximum = new decimal(new int[] { 1000, 0, 0, 0 });
numericUpDownConfirmations.Name = "numericUpDownConfirmations";
numericUpDownConfirmations.Size = new Size(120, 29);
numericUpDownConfirmations.TabIndex = 1;
//
// labelSettings5
//
labelSettings5.AutoSize = true;
labelSettings5.Location = new Point(11, 36);
labelSettings5.Name = "labelSettings5";
labelSettings5.Size = new Size(112, 21);
labelSettings5.TabIndex = 0;
labelSettings5.Text = "Confirmations:";
//
// labelSettingsSaved
//
labelSettingsSaved.AutoSize = true;
labelSettingsSaved.Location = new Point(109, 515);
labelSettingsSaved.Name = "labelSettingsSaved";
labelSettingsSaved.Size = new Size(52, 21);
labelSettingsSaved.TabIndex = 6;
labelSettingsSaved.Text = "Saved";
labelSettingsSaved.Visible = false;
//
// buttonSettingsSave
//
buttonSettingsSave.FlatStyle = FlatStyle.Flat;
buttonSettingsSave.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point);
buttonSettingsSave.Location = new Point(14, 509);
buttonSettingsSave.Name = "buttonSettingsSave";
buttonSettingsSave.Size = new Size(89, 33);
buttonSettingsSave.TabIndex = 4;
buttonSettingsSave.TabStop = false;
buttonSettingsSave.Text = "Save";
buttonSettingsSave.UseVisualStyleBackColor = true;
buttonSettingsSave.Click += buttonSettingsSave_Click;
//
// groupBoxSettingsExplorer
//
groupBoxSettingsExplorer.Controls.Add(labelSettings1);
groupBoxSettingsExplorer.Controls.Add(textBoxExName);
groupBoxSettingsExplorer.Controls.Add(labelSettings2);
groupBoxSettingsExplorer.Controls.Add(textBoxExBlock);
groupBoxSettingsExplorer.Controls.Add(labelSettings3);
groupBoxSettingsExplorer.Controls.Add(textBoxExAddr);
groupBoxSettingsExplorer.Controls.Add(labelSettings4);
groupBoxSettingsExplorer.Controls.Add(textBoxExTX);
groupBoxSettingsExplorer.Location = new Point(14, 16);
groupBoxSettingsExplorer.Name = "groupBoxSettingsExplorer";
groupBoxSettingsExplorer.Size = new Size(487, 188);
groupBoxSettingsExplorer.TabIndex = 5;
groupBoxSettingsExplorer.TabStop = false;
groupBoxSettingsExplorer.Text = "Explorer Settings";
//
// labelSettings1
//
labelSettings1.AutoSize = true;
labelSettings1.Location = new Point(43, 31);
labelSettings1.Name = "labelSettings1";
labelSettings1.Size = new Size(108, 21);
labelSettings1.TabIndex = 0;
labelSettings1.Text = "Explorer (TXs):";
//
// textBoxExName
//
textBoxExName.Location = new Point(157, 133);
textBoxExName.Name = "textBoxExName";
textBoxExName.Size = new Size(307, 29);
textBoxExName.TabIndex = 4;
//
// labelSettings2
//
labelSettings2.AutoSize = true;
labelSettings2.Location = new Point(11, 66);
labelSettings2.Name = "labelSettings2";
labelSettings2.Size = new Size(140, 21);
labelSettings2.TabIndex = 0;
labelSettings2.Text = "Explorer (Address):";
//
// textBoxExBlock
//
textBoxExBlock.Location = new Point(157, 98);
textBoxExBlock.Name = "textBoxExBlock";
textBoxExBlock.Size = new Size(307, 29);
textBoxExBlock.TabIndex = 3;
//
// labelSettings3
//
labelSettings3.AutoSize = true;
labelSettings3.Location = new Point(23, 101);
labelSettings3.Name = "labelSettings3";
labelSettings3.Size = new Size(128, 21);
labelSettings3.TabIndex = 0;
labelSettings3.Text = "Explorer (Blocks):";
//
// textBoxExAddr
//
textBoxExAddr.Location = new Point(157, 63);
textBoxExAddr.Name = "textBoxExAddr";
textBoxExAddr.Size = new Size(307, 29);
textBoxExAddr.TabIndex = 2;
//
// labelSettings4
//
labelSettings4.AutoSize = true;
labelSettings4.Location = new Point(5, 136);
labelSettings4.Name = "labelSettings4";
labelSettings4.Size = new Size(146, 21);
labelSettings4.TabIndex = 0;
labelSettings4.Text = "Explorer (Domains):";
//
// textBoxExTX
//
textBoxExTX.Location = new Point(157, 28);
textBoxExTX.Name = "textBoxExTX";
textBoxExTX.Size = new Size(307, 29);
textBoxExTX.TabIndex = 1;
//
// labelSettings7
//
labelSettings7.AutoSize = true;
labelSettings7.Location = new Point(71, 73);
labelSettings7.Name = "labelSettings7";
labelSettings7.Size = new Size(52, 21);
labelSettings7.TabIndex = 0;
labelSettings7.Text = "Show:";
//
// numericUpDownTXCount
//
numericUpDownTXCount.Location = new Point(129, 69);
numericUpDownTXCount.Maximum = new decimal(new int[] { 1000, 0, 0, 0 });
numericUpDownTXCount.Name = "numericUpDownTXCount";
numericUpDownTXCount.Size = new Size(120, 29);
numericUpDownTXCount.TabIndex = 1;
//
// labelSettings8
//
labelSettings8.AutoSize = true;
labelSettings8.Location = new Point(255, 71);
labelSettings8.Name = "labelSettings8";
labelSettings8.Size = new Size(120, 21);
labelSettings8.TabIndex = 2;
labelSettings8.Text = "TXs on portfolio";
//
// MainForm
//
AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(1152, 575);
Controls.Add(panelSettings);
Controls.Add(panelDomains);
Controls.Add(panelRecieve);
Controls.Add(panelSend);
@@ -711,6 +935,14 @@ namespace FireWallet
panelDomains.ResumeLayout(false);
panelDomains.PerformLayout();
groupBoxDomains.ResumeLayout(false);
panelSettings.ResumeLayout(false);
panelSettings.PerformLayout();
groupBoxSettingsMisc.ResumeLayout(false);
groupBoxSettingsMisc.PerformLayout();
((System.ComponentModel.ISupportInitialize)numericUpDownConfirmations).EndInit();
groupBoxSettingsExplorer.ResumeLayout(false);
groupBoxSettingsExplorer.PerformLayout();
((System.ComponentModel.ISupportInitialize)numericUpDownTXCount).EndInit();
ResumeLayout(false);
PerformLayout();
}
@@ -770,5 +1002,25 @@ namespace FireWallet
private Button buttonBatch;
private GroupBox groupBoxDomains;
private Panel panelDomainList;
private Button buttonNavSettings;
private Panel panelSettings;
private Label labelSettings1;
private Label labelSettings2;
private TextBox textBoxExName;
private TextBox textBoxExBlock;
private TextBox textBoxExAddr;
private TextBox textBoxExTX;
private Label labelSettings4;
private Label labelSettings3;
private Button buttonSettingsSave;
private GroupBox groupBoxSettingsExplorer;
private Label labelSettingsSaved;
private GroupBox groupBoxSettingsMisc;
private Label labelSettings6;
private NumericUpDown numericUpDownConfirmations;
private Label labelSettings5;
private Label labelSettings8;
private NumericUpDown numericUpDownTXCount;
private Label labelSettings7;
}
}

View File

@@ -35,6 +35,7 @@ namespace FireWallet
}
private void MainForm_Load(object sender, EventArgs e)
{
timerNodeStatus.Stop();
LoadSettings();
if (userSettings.ContainsKey("hide-splash"))
@@ -42,12 +43,15 @@ namespace FireWallet
if (userSettings["hide-splash"] == "false")
{
// Show splash screen
SplashScreen ss = new SplashScreen();
ss.ShowDialog();
ss.Dispose();
}
}
UpdateTheme();
LoadNode();
// Edit the theme of the navigation panel
panelNav.BackColor = ColorTranslator.FromHtml(theme["background-alt"]);
@@ -67,6 +71,8 @@ namespace FireWallet
AddLog("Loaded");
batchMode = false;
timerNodeStatus.Start();
}
private void MainForm_Closing(object sender, FormClosingEventArgs e)
{
@@ -215,7 +221,7 @@ namespace FireWallet
this.Height = Screen.PrimaryScreen.Bounds.Height / 5 * 3;
applyTransparency(theme);
ResizeForm();
}
private void ThemeControl(Control c)
{
@@ -228,7 +234,8 @@ namespace FireWallet
}
}
if (c.GetType() == typeof(TextBox) || c.GetType() == typeof(Button)
|| c.GetType() == typeof(ComboBox) || c.GetType() == typeof(StatusStrip) || c.GetType() == typeof(ToolStrip))
|| c.GetType() == typeof(ComboBox) || c.GetType() == typeof(StatusStrip) || c.GetType() == typeof(ToolStrip)
|| c.GetType() == typeof(NumericUpDown))
{
c.ForeColor = ColorTranslator.FromHtml(theme["foreground-alt"]);
c.BackColor = ColorTranslator.FromHtml(theme["background-alt"]);
@@ -360,6 +367,10 @@ namespace FireWallet
groupBoxaccount.Top = (this.ClientSize.Height - groupBoxaccount.Height) / 2;
groupBoxDomains.Width = panelDomains.Width - 20;
groupBoxDomains.Left = 10;
groupBoxDomains.Height = panelDomains.Height - groupBoxDomains.Top - 10;
buttonNavSettings.Top = panelNav.Height - buttonNavSettings.Height - 10;
buttonSettingsSave.Top = panelSettings.Height - buttonSettingsSave.Height - 10;
}
#endregion
#region Accounts
@@ -768,16 +779,8 @@ namespace FireWallet
#region Nav
private async void PortfolioPanel_Click(object sender, EventArgs e)
{
panelSend.Hide();
hidePages();
panelPortfolio.Show();
panelRecieve.Hide();
panelDomains.Hide();
buttonNavSend.BackColor = ColorTranslator.FromHtml(theme["background"]);
buttonNavSend.ForeColor = ColorTranslator.FromHtml(theme["foreground"]);
buttonNavReceive.BackColor = ColorTranslator.FromHtml(theme["background"]);
buttonNavReceive.ForeColor = ColorTranslator.FromHtml(theme["foreground"]);
buttonNavDomains.BackColor = ColorTranslator.FromHtml(theme["background"]);
buttonNavDomains.ForeColor = ColorTranslator.FromHtml(theme["foreground"]);
await UpdateBalance();
GetTXHistory();
labelBalance.Text = "Available: " + balance.ToString() + " HNS";
@@ -792,16 +795,8 @@ namespace FireWallet
private async void SendPanel_Click(object sender, EventArgs e)
{
panelPortfolio.Hide();
hidePages();
panelSend.Show();
panelRecieve.Hide();
panelDomains.Hide();
buttonNavPortfolio.BackColor = ColorTranslator.FromHtml(theme["background"]);
buttonNavPortfolio.ForeColor = ColorTranslator.FromHtml(theme["foreground"]);
buttonNavReceive.BackColor = ColorTranslator.FromHtml(theme["background"]);
buttonNavReceive.ForeColor = ColorTranslator.FromHtml(theme["foreground"]);
buttonNavDomains.BackColor = ColorTranslator.FromHtml(theme["background"]);
buttonNavDomains.ForeColor = ColorTranslator.FromHtml(theme["foreground"]);
if (theme.ContainsKey("selected-bg") && theme.ContainsKey("selected-fg"))
{
buttonNavSend.BackColor = ColorTranslator.FromHtml(theme["selected-bg"]);
@@ -833,16 +828,8 @@ namespace FireWallet
}
private async void ReceivePanel_Click(object sender, EventArgs e)
{
panelSend.Hide();
panelPortfolio.Hide();
hidePages();
panelRecieve.Show();
panelDomains.Hide();
buttonNavSend.BackColor = ColorTranslator.FromHtml(theme["background"]);
buttonNavSend.ForeColor = ColorTranslator.FromHtml(theme["foreground"]);
buttonNavPortfolio.BackColor = ColorTranslator.FromHtml(theme["background"]);
buttonNavPortfolio.ForeColor = ColorTranslator.FromHtml(theme["foreground"]);
buttonNavDomains.BackColor = ColorTranslator.FromHtml(theme["background"]);
buttonNavDomains.ForeColor = ColorTranslator.FromHtml(theme["foreground"]);
if (theme.ContainsKey("selected-bg") && theme.ContainsKey("selected-fg"))
{
@@ -874,18 +861,9 @@ namespace FireWallet
}
private void buttonNavDomains_Click(object sender, EventArgs e)
{
panelSend.Hide();
panelPortfolio.Hide();
panelRecieve.Hide();
hidePages();
panelDomains.Show();
buttonNavSend.BackColor = ColorTranslator.FromHtml(theme["background"]);
buttonNavSend.ForeColor = ColorTranslator.FromHtml(theme["foreground"]);
buttonNavPortfolio.BackColor = ColorTranslator.FromHtml(theme["background"]);
buttonNavPortfolio.ForeColor = ColorTranslator.FromHtml(theme["foreground"]);
buttonNavReceive.BackColor = ColorTranslator.FromHtml(theme["background"]);
buttonNavReceive.ForeColor = ColorTranslator.FromHtml(theme["foreground"]);
if (theme.ContainsKey("selected-bg") && theme.ContainsKey("selected-fg"))
{
buttonNavDomains.BackColor = ColorTranslator.FromHtml(theme["selected-bg"]);
@@ -894,9 +872,48 @@ namespace FireWallet
textBoxDomainSearch.Focus();
groupBoxDomains.Width = panelDomains.Width - 20;
groupBoxDomains.Left = 10;
groupBoxDomains.Height = panelDomains.Height - groupBoxDomains.Top - 10;
UpdateDomains();
}
private void hidePages()
{
panelSend.Hide();
panelPortfolio.Hide();
panelRecieve.Hide();
panelDomains.Hide();
panelSettings.Hide();
buttonNavPortfolio.BackColor = ColorTranslator.FromHtml(theme["background"]);
buttonNavPortfolio.ForeColor = ColorTranslator.FromHtml(theme["foreground"]);
buttonNavSend.BackColor = ColorTranslator.FromHtml(theme["background"]);
buttonNavSend.ForeColor = ColorTranslator.FromHtml(theme["foreground"]);
buttonNavReceive.BackColor = ColorTranslator.FromHtml(theme["background"]);
buttonNavReceive.ForeColor = ColorTranslator.FromHtml(theme["foreground"]);
buttonNavDomains.BackColor = ColorTranslator.FromHtml(theme["background"]);
buttonNavDomains.ForeColor = ColorTranslator.FromHtml(theme["foreground"]);
buttonNavSettings.BackColor = ColorTranslator.FromHtml(theme["background"]);
buttonNavSettings.ForeColor = ColorTranslator.FromHtml(theme["foreground"]);
}
private void buttonNavSettings_Click(object sender, EventArgs e)
{
hidePages();
if (theme.ContainsKey("selected-bg") && theme.ContainsKey("selected-fg"))
{
buttonNavSettings.BackColor = ColorTranslator.FromHtml(theme["selected-bg"]);
buttonNavSettings.ForeColor = ColorTranslator.FromHtml(theme["selected-fg"]);
}
panelSettings.Show();
buttonSettingsSave.Top = panelSettings.Height - buttonSettingsSave.Height - 10;
labelSettingsSaved.Top = buttonSettingsSave.Top + 10;
textBoxExTX.Text = userSettings["explorer-tx"];
textBoxExAddr.Text = userSettings["explorer-addr"];
textBoxExBlock.Text = userSettings["explorer-block"];
textBoxExName.Text = userSettings["explorer-domain"];
numericUpDownConfirmations.Value = int.Parse(userSettings["confirmations"]);
numericUpDownTXCount.Value = int.Parse(userSettings["portfolio-tx"]);
labelSettingsSaved.Hide();
}
#endregion
#region Send
private async void textBoxSendingTo_Leave(object sender, EventArgs e)
@@ -1096,22 +1113,6 @@ namespace FireWallet
}
}
#endregion
private void textBoxDomainSearch_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyValue == 13)
{
textBoxDomainSearch.Text = textBoxDomainSearch.Text.Trim().ToLower();
e.SuppressKeyPress = true;
DomainForm domainForm = new DomainForm(this, textBoxDomainSearch.Text, userSettings["explorer-tx"], userSettings["explorer-domain"]);
domainForm.Show();
}
}
#region Batching
public void AddBatch(string domain, string operation)
{
@@ -1164,11 +1165,38 @@ namespace FireWallet
}
#endregion
private void textBoxDomainSearch_KeyDown(object sender, KeyEventArgs e)
{
if (e.KeyValue == 13)
{
textBoxDomainSearch.Text = textBoxDomainSearch.Text.Trim().ToLower();
e.SuppressKeyPress = true;
DomainForm domainForm = new DomainForm(this, textBoxDomainSearch.Text, userSettings["explorer-tx"], userSettings["explorer-domain"]);
domainForm.Show();
}
}
private void textBoxDomainSearch_TextChanged(object sender, EventArgs e)
{
string domainSearch = textBoxDomainSearch.Text;
domainSearch = Regex.Replace(textBoxDomainSearch.Text, "[^a-zA-Z0-9-_]", "");
textBoxDomainSearch.Text = domainSearch;
}
private void buttonSettingsSave_Click(object sender, EventArgs e)
{
StreamWriter sw = new StreamWriter(dir + "settings.txt");
sw.WriteLine("explorer-tx: " + textBoxExTX.Text);
sw.WriteLine("explorer-addr: " + textBoxExAddr.Text);
sw.WriteLine("explorer-block: " + textBoxExBlock.Text);
sw.WriteLine("explorer-domain: " + textBoxExName.Text);
sw.WriteLine("confirmations: " + numericUpDownConfirmations.Value);
sw.WriteLine("portfolio-tx: " + numericUpDownTXCount.Value);
sw.WriteLine("hide-splash: " + userSettings["hide-splash"]);
sw.Dispose();
LoadSettings();
labelSettingsSaved.Show();
}
}
}

92
FireWallet/SplashScreen.Designer.cs generated Normal file
View 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;
}
}

View 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

File diff suppressed because it is too large Load Diff

View File

@@ -85,6 +85,9 @@ You can add transactions to the batch from the domain window or the DNS editor.
## Importing
You can also import a list of domains to the batch window.
The "CANCEL" transaction type is used to cancel an transfer.
At the momemt "UPDATE" or coin only transactions are not supported.
![Batch Import](assets/batch_import.png)

View File

@@ -1,7 +1,9 @@
woodburn1,OPEN
woodburn1,BID,1,3
woodburn2,BID,1,3
woodburn3,BID,1,3
woodburn4,BID,1,3
woodburn5,BID,1,3
woodburn6,BID,1,4
woodburn8,TRANSFER,hs1qlmlgnx0g3ynk4ylxkkdh9c9nernclnfq4lw6s9
woodburn8,TRANSFER,hs1qlmlgnx0g3ynk4ylxkkdh9c9nernclnfq4lw6s9
exampledomainnathan118,UPDATE,[{"type": "DS","keyTag": 20167,"algorithm": 13,"digestType": 2,"digest":"4a2ab3224727a4754a6c3d77621a5b04241a3d9c7ae7e5fa17f73121b9ff0e06"}, {"type": "NS","ns": "ns1.woodburn."}, {"type": "NS","ns": "ns2.woodburn."}, {"type": "TXT","txt": ["TEST"]}]