From 73723132693c2f1a0fde56d7bd4f6445bf718006 Mon Sep 17 00:00:00 2001 From: Dylan Bickerstaff Date: Tue, 16 Apr 2024 05:35:56 -0400 Subject: [PATCH] Added auto fill buttons back in. --- SuperGrate/Controls/Main.Designer.cs | 327 ++++++++++++++------------ SuperGrate/Controls/Main.cs | 26 ++ SuperGrate/Controls/Main.resx | 6 + SuperGrate/Properties/AssemblyInfo.cs | 2 +- SuperGrate/SuperGrate.csproj | 1 + 5 files changed, 216 insertions(+), 146 deletions(-) diff --git a/SuperGrate/Controls/Main.Designer.cs b/SuperGrate/Controls/Main.Designer.cs index 93cd6f8..679b50b 100644 --- a/SuperGrate/Controls/Main.Designer.cs +++ b/SuperGrate/Controls/Main.Designer.cs @@ -34,25 +34,16 @@ private void InitializeComponent() this.components = new System.ComponentModel.Container(); this.LogBox = new System.Windows.Forms.RichTextBox(); this.logTable = new System.Windows.Forms.TableLayoutPanel(); - this.pbMain = new SuperGrate.Controls.Components.SGProgressBar(); this.spltContainer = new System.Windows.Forms.SplitContainer(); this.tblMainLayout = new System.Windows.Forms.TableLayoutPanel(); this.sourCompTabl = new System.Windows.Forms.TableLayoutPanel(); - this.tbSourceComputer = new SuperGrate.Controls.Components.SGTextBox(); - this.btnAFillSrc = new SuperGrate.Controls.Components.SGButton(); this.lblSourceComputer = new System.Windows.Forms.Label(); this.lblDestinationComputer = new System.Windows.Forms.Label(); this.lblUserList = new System.Windows.Forms.Label(); - this.btnStartStop = new SuperGrate.Controls.Components.SGButton(); this.tbleListUsersButtons = new System.Windows.Forms.TableLayoutPanel(); - this.btnListSource = new SuperGrate.Controls.Components.SGButton(); - this.btnListStore = new SuperGrate.Controls.Components.SGButton(); - this.btnDelete = new SuperGrate.Controls.Components.SGButton(); this.pnlLogoBorder = new System.Windows.Forms.Panel(); this.imgLoadLogo = new System.Windows.Forms.PictureBox(); this.destCompTabl = new System.Windows.Forms.TableLayoutPanel(); - this.btnAFillDest = new SuperGrate.Controls.Components.SGButton(); - this.tbDestinationComputer = new SuperGrate.Controls.Components.SGTextBox(); this.listUsers = new System.Windows.Forms.ListView(); this.MainMenu = new System.Windows.Forms.MainMenu(this.components); this.miFile = new System.Windows.Forms.MenuItem(); @@ -86,6 +77,17 @@ private void InitializeComponent() this.miConDelete = new System.Windows.Forms.MenuItem(); this.miConSeperator = new System.Windows.Forms.MenuItem(); this.miConProperties = new System.Windows.Forms.MenuItem(); + this.btnThisPCFillSrc = new SuperGrate.Controls.Components.SGButton(); + this.tbSourceComputer = new SuperGrate.Controls.Components.SGTextBox(); + this.btnAFillSrc = new SuperGrate.Controls.Components.SGButton(); + this.btnStartStop = new SuperGrate.Controls.Components.SGButton(); + this.btnListSource = new SuperGrate.Controls.Components.SGButton(); + this.btnListStore = new SuperGrate.Controls.Components.SGButton(); + this.btnDelete = new SuperGrate.Controls.Components.SGButton(); + this.btnThisPCFillDest = new SuperGrate.Controls.Components.SGButton(); + this.btnAFillDest = new SuperGrate.Controls.Components.SGButton(); + this.tbDestinationComputer = new SuperGrate.Controls.Components.SGTextBox(); + this.pbMain = new SuperGrate.Controls.Components.SGProgressBar(); this.logTable.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.spltContainer)).BeginInit(); this.spltContainer.Panel1.SuspendLayout(); @@ -110,7 +112,7 @@ private void InitializeComponent() this.LogBox.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); this.LogBox.Name = "LogBox"; this.LogBox.ReadOnly = true; - this.LogBox.Size = new System.Drawing.Size(385, 302); + this.LogBox.Size = new System.Drawing.Size(385, 286); this.LogBox.TabIndex = 0; this.LogBox.TabStop = false; this.LogBox.Text = ""; @@ -131,21 +133,9 @@ private void InitializeComponent() this.logTable.RowCount = 2; this.logTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.logTable.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 36F)); - this.logTable.Size = new System.Drawing.Size(391, 346); + this.logTable.Size = new System.Drawing.Size(391, 330); this.logTable.TabIndex = 100; // - // pbMain - // - this.pbMain.Dock = System.Windows.Forms.DockStyle.Fill; - this.pbMain.ForeColor = System.Drawing.Color.Black; - this.pbMain.Location = new System.Drawing.Point(3, 314); - this.pbMain.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); - this.pbMain.MarqueeAnimationSpeed = 30; - this.pbMain.Name = "pbMain"; - this.pbMain.Size = new System.Drawing.Size(385, 28); - this.pbMain.Style = System.Windows.Forms.ProgressBarStyle.Continuous; - this.pbMain.TabIndex = 100; - // // spltContainer // this.spltContainer.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(249)))), ((int)(((byte)(249))))); @@ -163,7 +153,7 @@ private void InitializeComponent() // this.spltContainer.Panel2.Controls.Add(this.logTable); this.spltContainer.Panel2MinSize = 300; - this.spltContainer.Size = new System.Drawing.Size(974, 346); + this.spltContainer.Size = new System.Drawing.Size(974, 330); this.spltContainer.SplitterDistance = 579; this.spltContainer.TabIndex = 0; this.spltContainer.TabStop = false; @@ -194,16 +184,18 @@ private void InitializeComponent() this.tblMainLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.tblMainLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 110F)); this.tblMainLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 36F)); - this.tblMainLayout.Size = new System.Drawing.Size(579, 346); + this.tblMainLayout.Size = new System.Drawing.Size(579, 330); this.tblMainLayout.TabIndex = 100; // // sourCompTabl // - this.sourCompTabl.ColumnCount = 2; + this.sourCompTabl.ColumnCount = 3; this.sourCompTabl.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.sourCompTabl.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 32F)); + this.sourCompTabl.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 36F)); + this.sourCompTabl.Controls.Add(this.btnThisPCFillSrc, 0, 0); this.sourCompTabl.Controls.Add(this.tbSourceComputer, 0, 0); - this.sourCompTabl.Controls.Add(this.btnAFillSrc, 1, 0); + this.sourCompTabl.Controls.Add(this.btnAFillSrc, 2, 0); this.sourCompTabl.Dock = System.Windows.Forms.DockStyle.Fill; this.sourCompTabl.Location = new System.Drawing.Point(148, 0); this.sourCompTabl.Margin = new System.Windows.Forms.Padding(0); @@ -213,35 +205,6 @@ private void InitializeComponent() this.sourCompTabl.Size = new System.Drawing.Size(431, 36); this.sourCompTabl.TabIndex = 101; // - // tbSourceComputer - // - this.tbSourceComputer.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(249)))), ((int)(((byte)(249))))); - this.tbSourceComputer.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.tbSourceComputer.Dock = System.Windows.Forms.DockStyle.Fill; - this.tbSourceComputer.Icon = ""; - this.tbSourceComputer.Location = new System.Drawing.Point(3, 4); - this.tbSourceComputer.Margin = new System.Windows.Forms.Padding(3, 4, 6, 4); - this.tbSourceComputer.Multiline = true; - this.tbSourceComputer.Name = "tbSourceComputer"; - this.tbSourceComputer.Size = new System.Drawing.Size(390, 28); - this.tbSourceComputer.TabIndex = 1; - this.tbSourceComputer.TextChanged += new System.EventHandler(this.TbSourceComputer_TextChanged); - this.tbSourceComputer.KeyDown += new System.Windows.Forms.KeyEventHandler(this.TbSourceDestComputer_KeyDown); - // - // btnAFillSrc - // - this.btnAFillSrc.Dock = System.Windows.Forms.DockStyle.Fill; - this.btnAFillSrc.FlatStyle = System.Windows.Forms.FlatStyle.System; - this.btnAFillSrc.Icon = ""; - this.btnAFillSrc.Location = new System.Drawing.Point(399, 4); - this.btnAFillSrc.Margin = new System.Windows.Forms.Padding(0, 4, 2, 4); - this.btnAFillSrc.Name = "btnAFillSrc"; - this.btnAFillSrc.Size = new System.Drawing.Size(30, 28); - this.btnAFillSrc.TabIndex = 2; - this.btnAFillSrc.Text = null; - this.btnAFillSrc.UseVisualStyleBackColor = true; - this.btnAFillSrc.Click += new System.EventHandler(this.BtnAFillSrc_Click); - // // lblSourceComputer // this.lblSourceComputer.Dock = System.Windows.Forms.DockStyle.Fill; @@ -265,25 +228,10 @@ private void InitializeComponent() this.lblUserList.Dock = System.Windows.Forms.DockStyle.Fill; this.lblUserList.Location = new System.Drawing.Point(3, 108); this.lblUserList.Name = "lblUserList"; - this.lblUserList.Size = new System.Drawing.Size(142, 92); + this.lblUserList.Size = new System.Drawing.Size(142, 76); this.lblUserList.TabIndex = 100; this.lblUserList.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // - // btnStartStop - // - this.tblMainLayout.SetColumnSpan(this.btnStartStop, 2); - this.btnStartStop.Dock = System.Windows.Forms.DockStyle.Fill; - this.btnStartStop.Enabled = false; - this.btnStartStop.FlatStyle = System.Windows.Forms.FlatStyle.System; - this.btnStartStop.Location = new System.Drawing.Point(3, 313); - this.btnStartStop.Margin = new System.Windows.Forms.Padding(3, 3, 2, 3); - this.btnStartStop.Name = "btnStartStop"; - this.btnStartStop.Size = new System.Drawing.Size(574, 30); - this.btnStartStop.TabIndex = 9; - this.btnStartStop.Text = null; - this.btnStartStop.UseVisualStyleBackColor = true; - this.btnStartStop.Click += new System.EventHandler(this.BtStartStop_Click); - // // tbleListUsersButtons // this.tbleListUsersButtons.ColumnCount = 3; @@ -302,50 +250,11 @@ private void InitializeComponent() this.tbleListUsersButtons.Size = new System.Drawing.Size(430, 36); this.tbleListUsersButtons.TabIndex = 100; // - // btnListSource - // - this.btnListSource.Dock = System.Windows.Forms.DockStyle.Fill; - this.btnListSource.FlatStyle = System.Windows.Forms.FlatStyle.System; - this.btnListSource.Icon = ""; - this.btnListSource.Location = new System.Drawing.Point(2, 3); - this.btnListSource.Margin = new System.Windows.Forms.Padding(2, 3, 3, 3); - this.btnListSource.Name = "btnListSource"; - this.btnListSource.Size = new System.Drawing.Size(138, 30); - this.btnListSource.TabIndex = 5; - this.btnListSource.Text = null; - this.btnListSource.Click += new System.EventHandler(this.BtnListSource_Click); - // - // btnListStore - // - this.btnListStore.Dock = System.Windows.Forms.DockStyle.Fill; - this.btnListStore.FlatStyle = System.Windows.Forms.FlatStyle.System; - this.btnListStore.Icon = ""; - this.btnListStore.Location = new System.Drawing.Point(146, 3); - this.btnListStore.Name = "btnListStore"; - this.btnListStore.Size = new System.Drawing.Size(137, 30); - this.btnListStore.TabIndex = 6; - this.btnListStore.Text = null; - this.btnListStore.Click += new System.EventHandler(this.BtnListStore_Click); - // - // btnDelete - // - this.btnDelete.Dock = System.Windows.Forms.DockStyle.Fill; - this.btnDelete.Enabled = false; - this.btnDelete.FlatStyle = System.Windows.Forms.FlatStyle.System; - this.btnDelete.Icon = ""; - this.btnDelete.Location = new System.Drawing.Point(289, 3); - this.btnDelete.Margin = new System.Windows.Forms.Padding(3, 3, 2, 3); - this.btnDelete.Name = "btnDelete"; - this.btnDelete.Size = new System.Drawing.Size(139, 30); - this.btnDelete.TabIndex = 7; - this.btnDelete.Text = null; - this.btnDelete.Click += new System.EventHandler(this.BtnDelete_Click); - // // pnlLogoBorder // this.pnlLogoBorder.Controls.Add(this.imgLoadLogo); this.pnlLogoBorder.Dock = System.Windows.Forms.DockStyle.Fill; - this.pnlLogoBorder.Location = new System.Drawing.Point(4, 200); + this.pnlLogoBorder.Location = new System.Drawing.Point(4, 184); this.pnlLogoBorder.Margin = new System.Windows.Forms.Padding(4, 0, 4, 4); this.pnlLogoBorder.Name = "pnlLogoBorder"; this.pnlLogoBorder.Padding = new System.Windows.Forms.Padding(1); @@ -367,10 +276,12 @@ private void InitializeComponent() // // destCompTabl // - this.destCompTabl.ColumnCount = 2; + this.destCompTabl.ColumnCount = 3; this.destCompTabl.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.destCompTabl.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 32F)); - this.destCompTabl.Controls.Add(this.btnAFillDest, 0, 0); + this.destCompTabl.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 36F)); + this.destCompTabl.Controls.Add(this.btnThisPCFillDest, 0, 0); + this.destCompTabl.Controls.Add(this.btnAFillDest, 2, 0); this.destCompTabl.Controls.Add(this.tbDestinationComputer, 0, 0); this.destCompTabl.Dock = System.Windows.Forms.DockStyle.Fill; this.destCompTabl.Location = new System.Drawing.Point(148, 36); @@ -381,35 +292,6 @@ private void InitializeComponent() this.destCompTabl.Size = new System.Drawing.Size(431, 36); this.destCompTabl.TabIndex = 102; // - // btnAFillDest - // - this.btnAFillDest.Dock = System.Windows.Forms.DockStyle.Fill; - this.btnAFillDest.FlatStyle = System.Windows.Forms.FlatStyle.System; - this.btnAFillDest.Icon = ""; - this.btnAFillDest.Location = new System.Drawing.Point(399, 4); - this.btnAFillDest.Margin = new System.Windows.Forms.Padding(0, 4, 2, 4); - this.btnAFillDest.Name = "btnAFillDest"; - this.btnAFillDest.Size = new System.Drawing.Size(30, 28); - this.btnAFillDest.TabIndex = 4; - this.btnAFillDest.Text = null; - this.btnAFillDest.UseVisualStyleBackColor = true; - this.btnAFillDest.Click += new System.EventHandler(this.BtnAFillDest_Click); - // - // tbDestinationComputer - // - this.tbDestinationComputer.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(249)))), ((int)(((byte)(249))))); - this.tbDestinationComputer.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.tbDestinationComputer.Dock = System.Windows.Forms.DockStyle.Fill; - this.tbDestinationComputer.Icon = ""; - this.tbDestinationComputer.Location = new System.Drawing.Point(3, 4); - this.tbDestinationComputer.Margin = new System.Windows.Forms.Padding(3, 4, 6, 4); - this.tbDestinationComputer.Multiline = true; - this.tbDestinationComputer.Name = "tbDestinationComputer"; - this.tbDestinationComputer.Size = new System.Drawing.Size(390, 28); - this.tbDestinationComputer.TabIndex = 3; - this.tbDestinationComputer.TextChanged += new System.EventHandler(this.TbDestinationComputer_TextChanged); - this.tbDestinationComputer.KeyDown += new System.Windows.Forms.KeyEventHandler(this.TbSourceDestComputer_KeyDown); - // // listUsers // this.listUsers.AutoArrange = false; @@ -423,7 +305,7 @@ private void InitializeComponent() this.listUsers.Name = "listUsers"; this.tblMainLayout.SetRowSpan(this.listUsers, 2); this.listUsers.ShowGroups = false; - this.listUsers.Size = new System.Drawing.Size(425, 195); + this.listUsers.Size = new System.Drawing.Size(425, 179); this.listUsers.TabIndex = 8; this.listUsers.UseCompatibleStateImageBehavior = false; this.listUsers.View = System.Windows.Forms.View.Details; @@ -650,11 +532,164 @@ private void InitializeComponent() this.miConProperties.Text = ""; this.miConProperties.Click += new System.EventHandler(this.OpenUserProperties_Event); // + // btnThisPCFillSrc + // + this.btnThisPCFillSrc.Dock = System.Windows.Forms.DockStyle.Fill; + this.btnThisPCFillSrc.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.btnThisPCFillSrc.Icon = ""; + this.btnThisPCFillSrc.Location = new System.Drawing.Point(363, 4); + this.btnThisPCFillSrc.Margin = new System.Windows.Forms.Padding(0, 4, 2, 4); + this.btnThisPCFillSrc.Name = "btnThisPCFillSrc"; + this.btnThisPCFillSrc.Size = new System.Drawing.Size(30, 28); + this.btnThisPCFillSrc.TabIndex = 3; + this.btnThisPCFillSrc.Text = null; + this.btnThisPCFillSrc.UseVisualStyleBackColor = true; + this.btnThisPCFillSrc.Click += new System.EventHandler(this.btnThisPCFillSrc_Click); + // + // tbSourceComputer + // + this.tbSourceComputer.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(249)))), ((int)(((byte)(249))))); + this.tbSourceComputer.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.tbSourceComputer.Dock = System.Windows.Forms.DockStyle.Fill; + this.tbSourceComputer.Icon = ""; + this.tbSourceComputer.Location = new System.Drawing.Point(3, 4); + this.tbSourceComputer.Margin = new System.Windows.Forms.Padding(3, 4, 6, 4); + this.tbSourceComputer.Multiline = true; + this.tbSourceComputer.Name = "tbSourceComputer"; + this.tbSourceComputer.Size = new System.Drawing.Size(354, 28); + this.tbSourceComputer.TabIndex = 1; + this.tbSourceComputer.TextChanged += new System.EventHandler(this.TbSourceComputer_TextChanged); + this.tbSourceComputer.KeyDown += new System.Windows.Forms.KeyEventHandler(this.TbSourceDestComputer_KeyDown); + // + // btnAFillSrc + // + this.btnAFillSrc.Dock = System.Windows.Forms.DockStyle.Fill; + this.btnAFillSrc.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.btnAFillSrc.Icon = ""; + this.btnAFillSrc.Location = new System.Drawing.Point(399, 4); + this.btnAFillSrc.Margin = new System.Windows.Forms.Padding(4, 4, 2, 4); + this.btnAFillSrc.Name = "btnAFillSrc"; + this.btnAFillSrc.Size = new System.Drawing.Size(30, 28); + this.btnAFillSrc.TabIndex = 2; + this.btnAFillSrc.Text = null; + this.btnAFillSrc.UseVisualStyleBackColor = true; + this.btnAFillSrc.Click += new System.EventHandler(this.BtnAFillSrc_Click); + // + // btnStartStop + // + this.tblMainLayout.SetColumnSpan(this.btnStartStop, 2); + this.btnStartStop.Dock = System.Windows.Forms.DockStyle.Fill; + this.btnStartStop.Enabled = false; + this.btnStartStop.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.btnStartStop.Icon = ""; + this.btnStartStop.Location = new System.Drawing.Point(3, 297); + this.btnStartStop.Margin = new System.Windows.Forms.Padding(3, 3, 2, 3); + this.btnStartStop.Name = "btnStartStop"; + this.btnStartStop.Size = new System.Drawing.Size(574, 30); + this.btnStartStop.TabIndex = 9; + this.btnStartStop.Text = null; + this.btnStartStop.UseVisualStyleBackColor = true; + this.btnStartStop.Click += new System.EventHandler(this.BtStartStop_Click); + // + // btnListSource + // + this.btnListSource.Dock = System.Windows.Forms.DockStyle.Fill; + this.btnListSource.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.btnListSource.Icon = ""; + this.btnListSource.Location = new System.Drawing.Point(2, 3); + this.btnListSource.Margin = new System.Windows.Forms.Padding(2, 3, 3, 3); + this.btnListSource.Name = "btnListSource"; + this.btnListSource.Size = new System.Drawing.Size(138, 30); + this.btnListSource.TabIndex = 5; + this.btnListSource.Text = null; + this.btnListSource.Click += new System.EventHandler(this.BtnListSource_Click); + // + // btnListStore + // + this.btnListStore.Dock = System.Windows.Forms.DockStyle.Fill; + this.btnListStore.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.btnListStore.Icon = ""; + this.btnListStore.Location = new System.Drawing.Point(146, 3); + this.btnListStore.Name = "btnListStore"; + this.btnListStore.Size = new System.Drawing.Size(137, 30); + this.btnListStore.TabIndex = 6; + this.btnListStore.Text = null; + this.btnListStore.Click += new System.EventHandler(this.BtnListStore_Click); + // + // btnDelete + // + this.btnDelete.Dock = System.Windows.Forms.DockStyle.Fill; + this.btnDelete.Enabled = false; + this.btnDelete.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.btnDelete.Icon = ""; + this.btnDelete.Location = new System.Drawing.Point(289, 3); + this.btnDelete.Margin = new System.Windows.Forms.Padding(3, 3, 2, 3); + this.btnDelete.Name = "btnDelete"; + this.btnDelete.Size = new System.Drawing.Size(139, 30); + this.btnDelete.TabIndex = 7; + this.btnDelete.Text = null; + this.btnDelete.Click += new System.EventHandler(this.BtnDelete_Click); + // + // btnThisPCFillDest + // + this.btnThisPCFillDest.Dock = System.Windows.Forms.DockStyle.Fill; + this.btnThisPCFillDest.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.btnThisPCFillDest.Icon = ""; + this.btnThisPCFillDest.Location = new System.Drawing.Point(363, 4); + this.btnThisPCFillDest.Margin = new System.Windows.Forms.Padding(0, 4, 2, 4); + this.btnThisPCFillDest.Name = "btnThisPCFillDest"; + this.btnThisPCFillDest.Size = new System.Drawing.Size(30, 28); + this.btnThisPCFillDest.TabIndex = 5; + this.btnThisPCFillDest.Text = null; + this.btnThisPCFillDest.UseVisualStyleBackColor = true; + this.btnThisPCFillDest.Click += new System.EventHandler(this.btnThisPCFillDest_Click); + // + // btnAFillDest + // + this.btnAFillDest.Dock = System.Windows.Forms.DockStyle.Fill; + this.btnAFillDest.FlatStyle = System.Windows.Forms.FlatStyle.System; + this.btnAFillDest.Icon = ""; + this.btnAFillDest.Location = new System.Drawing.Point(399, 4); + this.btnAFillDest.Margin = new System.Windows.Forms.Padding(4, 4, 2, 4); + this.btnAFillDest.Name = "btnAFillDest"; + this.btnAFillDest.Size = new System.Drawing.Size(30, 28); + this.btnAFillDest.TabIndex = 4; + this.btnAFillDest.Text = null; + this.btnAFillDest.UseVisualStyleBackColor = true; + this.btnAFillDest.Click += new System.EventHandler(this.BtnAFillDest_Click); + // + // tbDestinationComputer + // + this.tbDestinationComputer.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(249)))), ((int)(((byte)(249))))); + this.tbDestinationComputer.BorderStyle = System.Windows.Forms.BorderStyle.None; + this.tbDestinationComputer.Dock = System.Windows.Forms.DockStyle.Fill; + this.tbDestinationComputer.Icon = ""; + this.tbDestinationComputer.Location = new System.Drawing.Point(3, 4); + this.tbDestinationComputer.Margin = new System.Windows.Forms.Padding(3, 4, 6, 4); + this.tbDestinationComputer.Multiline = true; + this.tbDestinationComputer.Name = "tbDestinationComputer"; + this.tbDestinationComputer.Size = new System.Drawing.Size(354, 28); + this.tbDestinationComputer.TabIndex = 3; + this.tbDestinationComputer.TextChanged += new System.EventHandler(this.TbDestinationComputer_TextChanged); + this.tbDestinationComputer.KeyDown += new System.Windows.Forms.KeyEventHandler(this.TbSourceDestComputer_KeyDown); + // + // pbMain + // + this.pbMain.Dock = System.Windows.Forms.DockStyle.Fill; + this.pbMain.ForeColor = System.Drawing.Color.Black; + this.pbMain.Location = new System.Drawing.Point(3, 298); + this.pbMain.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); + this.pbMain.MarqueeAnimationSpeed = 30; + this.pbMain.Name = "pbMain"; + this.pbMain.Size = new System.Drawing.Size(385, 28); + this.pbMain.Style = System.Windows.Forms.ProgressBarStyle.Continuous; + this.pbMain.TabIndex = 100; + // // Main // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(249)))), ((int)(((byte)(249)))), ((int)(((byte)(249))))); - this.ClientSize = new System.Drawing.Size(984, 356); + this.ClientSize = new System.Drawing.Size(984, 340); this.Controls.Add(this.spltContainer); this.DoubleBuffered = true; this.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); @@ -741,6 +776,8 @@ private void InitializeComponent() private System.Windows.Forms.MenuItem miSeperator55; private System.Windows.Forms.MenuItem miUpdateCheck; private System.Windows.Forms.MenuItem miConRename; + private SGButton btnThisPCFillSrc; + private SGButton btnThisPCFillDest; } } diff --git a/SuperGrate/Controls/Main.cs b/SuperGrate/Controls/Main.cs index e26656e..60f7d15 100644 --- a/SuperGrate/Controls/Main.cs +++ b/SuperGrate/Controls/Main.cs @@ -778,14 +778,23 @@ private void ListUsers_MouseClick(object sender, MouseEventArgs e) miConUser.Show((Control)sender, e.Location); } } + /// + /// Whenever a context menu is opened, run the "DrawMenuItemBitmaps" method. + /// private void Menu_Popup(object sender, EventArgs e) { ((Menu)sender).DrawMenuItemBitmaps(); } + /// + /// Open the Github releases page when the update button is clicked. + /// private void MiUpdateCheck_Click(object sender, EventArgs e) { Process.Start("OpenWith.exe", "https://github.com/belowaverage-org/SuperGrate/releases"); } + /// + /// When the menu item for renaming a store user is clicked, open the rename store dialog. + /// private async void MiConRename_Click(object sender, EventArgs e) { if (listUsers.SelectedItems.Count == 1) @@ -811,10 +820,27 @@ private async void MiConRename_Click(object sender, EventArgs e) } } } + /// + /// Run the "OpenWith.exe" dialog when attempting to open a link in the log box so the user can select a browser. + /// private void LogBox_LinkClicked(object sender, LinkClickedEventArgs e) { Process.Start("OpenWith.exe", e.LinkText); } + /// + /// Fill the Source Computer textbox with the current machine's hostname. + /// + private void btnThisPCFillSrc_Click(object sender, EventArgs e) + { + tbSourceComputer.Text = Environment.MachineName; + } + /// + /// Fill the Destination Computer textbox with the current machine's hostname. + /// + private void btnThisPCFillDest_Click(object sender, EventArgs e) + { + tbDestinationComputer.Text = Environment.MachineName; + } } /// /// Enum of user sources that can be displayed in Super Grate. diff --git a/SuperGrate/Controls/Main.resx b/SuperGrate/Controls/Main.resx index 7a2cbf5..ecf87d0 100644 --- a/SuperGrate/Controls/Main.resx +++ b/SuperGrate/Controls/Main.resx @@ -135,6 +135,9 @@ True + + True + True @@ -174,6 +177,9 @@ True + + True + True diff --git a/SuperGrate/Properties/AssemblyInfo.cs b/SuperGrate/Properties/AssemblyInfo.cs index 3f65223..70b3fb4 100644 --- a/SuperGrate/Properties/AssemblyInfo.cs +++ b/SuperGrate/Properties/AssemblyInfo.cs @@ -14,4 +14,4 @@ [assembly: Guid("2f05c2fb-1f11-4d53-9d9d-c8cec72ab64e")] -[assembly: AssemblyVersion("1.4.1.0")] +[assembly: AssemblyVersion("1.4.2.0")] diff --git a/SuperGrate/SuperGrate.csproj b/SuperGrate/SuperGrate.csproj index 3dd69d0..4ef0538 100644 --- a/SuperGrate/SuperGrate.csproj +++ b/SuperGrate/SuperGrate.csproj @@ -225,6 +225,7 @@ Main.cs + Designer ResXFileCodeGenerator