main: Added bids page

This commit is contained in:
Nathan Woodburn 2023-06-21 16:56:34 +10:00
parent 9f33c74bb0
commit 64fc28d745
Signed by: nathanwoodburn
GPG Key ID: 203B000478AD0EF1
2 changed files with 47 additions and 4 deletions

View File

@ -58,6 +58,7 @@ namespace FireWallet
labelaccountusername = new Label(); labelaccountusername = new Label();
buttonaccountnew = new Button(); buttonaccountnew = new Button();
panelNav = new Panel(); panelNav = new Panel();
buttonNavBids = new Button();
buttonNavSettings = new Button(); buttonNavSettings = new Button();
buttonBatch = new Button(); buttonBatch = new Button();
buttonNavDomains = new Button(); buttonNavDomains = new Button();
@ -126,6 +127,7 @@ namespace FireWallet
textBoxExAddr = new TextBox(); textBoxExAddr = new TextBox();
labelSettings4 = new Label(); labelSettings4 = new Label();
textBoxExTX = new TextBox(); textBoxExTX = new TextBox();
panelBids = new Panel();
statusStripmain.SuspendLayout(); statusStripmain.SuspendLayout();
panelaccount.SuspendLayout(); panelaccount.SuspendLayout();
groupBoxaccount.SuspendLayout(); groupBoxaccount.SuspendLayout();
@ -353,6 +355,7 @@ namespace FireWallet
// //
// panelNav // panelNav
// //
panelNav.Controls.Add(buttonNavBids);
panelNav.Controls.Add(buttonNavSettings); panelNav.Controls.Add(buttonNavSettings);
panelNav.Controls.Add(buttonBatch); panelNav.Controls.Add(buttonBatch);
panelNav.Controls.Add(buttonNavDomains); panelNav.Controls.Add(buttonNavDomains);
@ -365,6 +368,19 @@ namespace FireWallet
panelNav.Size = new Size(114, 553); panelNav.Size = new Size(114, 553);
panelNav.TabIndex = 6; panelNav.TabIndex = 6;
// //
// buttonNavBids
//
buttonNavBids.FlatStyle = FlatStyle.Flat;
buttonNavBids.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point);
buttonNavBids.Location = new Point(12, 245);
buttonNavBids.Name = "buttonNavBids";
buttonNavBids.Size = new Size(89, 30);
buttonNavBids.TabIndex = 5;
buttonNavBids.TabStop = false;
buttonNavBids.Text = "Bids";
buttonNavBids.UseVisualStyleBackColor = true;
buttonNavBids.Click += buttonNavBids_Click;
//
// buttonNavSettings // buttonNavSettings
// //
buttonNavSettings.FlatStyle = FlatStyle.Flat; buttonNavSettings.FlatStyle = FlatStyle.Flat;
@ -382,7 +398,7 @@ namespace FireWallet
// //
buttonBatch.FlatStyle = FlatStyle.Flat; buttonBatch.FlatStyle = FlatStyle.Flat;
buttonBatch.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point); buttonBatch.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point);
buttonBatch.Location = new Point(12, 245); buttonBatch.Location = new Point(12, 300);
buttonBatch.Name = "buttonBatch"; buttonBatch.Name = "buttonBatch";
buttonBatch.Size = new Size(89, 30); buttonBatch.Size = new Size(89, 30);
buttonBatch.TabIndex = 3; buttonBatch.TabIndex = 3;
@ -395,7 +411,7 @@ namespace FireWallet
// //
buttonNavDomains.FlatStyle = FlatStyle.Flat; buttonNavDomains.FlatStyle = FlatStyle.Flat;
buttonNavDomains.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point); buttonNavDomains.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point);
buttonNavDomains.Location = new Point(12, 189); buttonNavDomains.Location = new Point(12, 190);
buttonNavDomains.Name = "buttonNavDomains"; buttonNavDomains.Name = "buttonNavDomains";
buttonNavDomains.Size = new Size(89, 30); buttonNavDomains.Size = new Size(89, 30);
buttonNavDomains.TabIndex = 2; buttonNavDomains.TabIndex = 2;
@ -408,7 +424,7 @@ namespace FireWallet
// //
buttonNavReceive.FlatStyle = FlatStyle.Flat; buttonNavReceive.FlatStyle = FlatStyle.Flat;
buttonNavReceive.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point); buttonNavReceive.Font = new Font("Segoe UI", 12F, FontStyle.Regular, GraphicsUnit.Point);
buttonNavReceive.Location = new Point(12, 134); buttonNavReceive.Location = new Point(12, 135);
buttonNavReceive.Name = "buttonNavReceive"; buttonNavReceive.Name = "buttonNavReceive";
buttonNavReceive.Size = new Size(89, 30); buttonNavReceive.Size = new Size(89, 30);
buttonNavReceive.TabIndex = 1; buttonNavReceive.TabIndex = 1;
@ -449,7 +465,7 @@ namespace FireWallet
panelPortfolio.Controls.Add(groupBoxTransactions); panelPortfolio.Controls.Add(groupBoxTransactions);
panelPortfolio.Controls.Add(groupBoxinfo); panelPortfolio.Controls.Add(groupBoxinfo);
panelPortfolio.Controls.Add(groupBoxbalance); panelPortfolio.Controls.Add(groupBoxbalance);
panelPortfolio.Location = new Point(140, 35); panelPortfolio.Location = new Point(1036, 129);
panelPortfolio.Name = "panelPortfolio"; panelPortfolio.Name = "panelPortfolio";
panelPortfolio.Size = new Size(956, 538); panelPortfolio.Size = new Size(956, 538);
panelPortfolio.TabIndex = 7; panelPortfolio.TabIndex = 7;
@ -1105,11 +1121,20 @@ namespace FireWallet
textBoxExTX.Size = new Size(307, 29); textBoxExTX.Size = new Size(307, 29);
textBoxExTX.TabIndex = 1; textBoxExTX.TabIndex = 1;
// //
// panelBids
//
panelBids.Location = new Point(143, 44);
panelBids.Name = "panelBids";
panelBids.Size = new Size(868, 484);
panelBids.TabIndex = 20;
panelBids.Visible = false;
//
// MainForm // MainForm
// //
AutoScaleDimensions = new SizeF(7F, 15F); AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font; AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(1152, 575); ClientSize = new Size(1152, 575);
Controls.Add(panelBids);
Controls.Add(panelDomains); Controls.Add(panelDomains);
Controls.Add(panelSend); Controls.Add(panelSend);
Controls.Add(panelSettings); Controls.Add(panelSettings);
@ -1251,5 +1276,7 @@ namespace FireWallet
private Label labelDomainSort; private Label labelDomainSort;
private ToolStripSeparator toolStripSeparator1; private ToolStripSeparator toolStripSeparator1;
private ToolStripMenuItem otherProjectsToolStripMenuItem; private ToolStripMenuItem otherProjectsToolStripMenuItem;
private Button buttonNavBids;
private Panel panelBids;
} }
} }

View File

@ -1314,6 +1314,7 @@ namespace FireWallet
panelRecieve.Hide(); panelRecieve.Hide();
panelDomains.Hide(); panelDomains.Hide();
panelSettings.Hide(); panelSettings.Hide();
panelBids.Hide();
buttonNavPortfolio.BackColor = ColorTranslator.FromHtml(Theme["background"]); buttonNavPortfolio.BackColor = ColorTranslator.FromHtml(Theme["background"]);
buttonNavPortfolio.ForeColor = ColorTranslator.FromHtml(Theme["foreground"]); buttonNavPortfolio.ForeColor = ColorTranslator.FromHtml(Theme["foreground"]);
buttonNavSend.BackColor = ColorTranslator.FromHtml(Theme["background"]); buttonNavSend.BackColor = ColorTranslator.FromHtml(Theme["background"]);
@ -1324,6 +1325,8 @@ namespace FireWallet
buttonNavDomains.ForeColor = ColorTranslator.FromHtml(Theme["foreground"]); buttonNavDomains.ForeColor = ColorTranslator.FromHtml(Theme["foreground"]);
buttonNavSettings.BackColor = ColorTranslator.FromHtml(Theme["background"]); buttonNavSettings.BackColor = ColorTranslator.FromHtml(Theme["background"]);
buttonNavSettings.ForeColor = ColorTranslator.FromHtml(Theme["foreground"]); buttonNavSettings.ForeColor = ColorTranslator.FromHtml(Theme["foreground"]);
buttonNavBids.BackColor = ColorTranslator.FromHtml(Theme["background"]);
buttonNavBids.ForeColor = ColorTranslator.FromHtml(Theme["foreground"]);
} }
private void buttonNavSettings_Click(object sender, EventArgs e) private void buttonNavSettings_Click(object sender, EventArgs e)
{ {
@ -1346,6 +1349,19 @@ namespace FireWallet
numericUpDownTXCount.Value = int.Parse(UserSettings["portfolio-tx"]); numericUpDownTXCount.Value = int.Parse(UserSettings["portfolio-tx"]);
labelSettingsSaved.Hide(); labelSettingsSaved.Hide();
} }
private void buttonNavBids_Click(object sender, EventArgs e)
{
hidePages();
if (Theme.ContainsKey("selected-bg") && Theme.ContainsKey("selected-fg"))
{
buttonNavBids.BackColor = ColorTranslator.FromHtml(Theme["selected-bg"]);
buttonNavBids.ForeColor = ColorTranslator.FromHtml(Theme["selected-fg"]);
}
panelBids.Show();
panelBids.Dock = DockStyle.Fill;
}
#endregion #endregion
#region Send #region Send