From 7e3315d66bd10e361cdac3d8cde4f56f6a028034 Mon Sep 17 00:00:00 2001 From: Kresten Laust Date: Mon, 10 Jul 2023 18:38:52 +0200 Subject: [PATCH 1/2] Created a few controls --- ChessForms/BoardMoveHistory.Designer.cs | 45 +++++++ ChessForms/BoardMoveHistory.cs | 20 ++++ ChessForms/BoardMoveHistory.resx | 120 +++++++++++++++++++ ChessForms/BoardMoveHistoryEntry.Designer.cs | 58 +++++++++ ChessForms/BoardMoveHistoryEntry.cs | 20 ++++ ChessForms/BoardMoveHistoryEntry.resx | 120 +++++++++++++++++++ 6 files changed, 383 insertions(+) create mode 100644 ChessForms/BoardMoveHistory.Designer.cs create mode 100644 ChessForms/BoardMoveHistory.cs create mode 100644 ChessForms/BoardMoveHistory.resx create mode 100644 ChessForms/BoardMoveHistoryEntry.Designer.cs create mode 100644 ChessForms/BoardMoveHistoryEntry.cs create mode 100644 ChessForms/BoardMoveHistoryEntry.resx diff --git a/ChessForms/BoardMoveHistory.Designer.cs b/ChessForms/BoardMoveHistory.Designer.cs new file mode 100644 index 0000000..db6341f --- /dev/null +++ b/ChessForms/BoardMoveHistory.Designer.cs @@ -0,0 +1,45 @@ +namespace ChessForms +{ + partial class BoardMoveHistory + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + SuspendLayout(); + // + // BoardMoveHistory + // + AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); + AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + ClientSize = new System.Drawing.Size(358, 204); + Name = "BoardMoveHistory"; + Text = "BoardMoveHistory"; + ResumeLayout(false); + } + + #endregion + } +} \ No newline at end of file diff --git a/ChessForms/BoardMoveHistory.cs b/ChessForms/BoardMoveHistory.cs new file mode 100644 index 0000000..2c2b664 --- /dev/null +++ b/ChessForms/BoardMoveHistory.cs @@ -0,0 +1,20 @@ +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 ChessForms +{ + public partial class BoardMoveHistory : Form + { + public BoardMoveHistory() + { + InitializeComponent(); + } + } +} diff --git a/ChessForms/BoardMoveHistory.resx b/ChessForms/BoardMoveHistory.resx new file mode 100644 index 0000000..a395bff --- /dev/null +++ b/ChessForms/BoardMoveHistory.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/ChessForms/BoardMoveHistoryEntry.Designer.cs b/ChessForms/BoardMoveHistoryEntry.Designer.cs new file mode 100644 index 0000000..edf79ae --- /dev/null +++ b/ChessForms/BoardMoveHistoryEntry.Designer.cs @@ -0,0 +1,58 @@ +namespace ChessForms +{ + partial class BoardMoveHistoryEntry + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Component Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + labelMoveNotation = new System.Windows.Forms.Label(); + SuspendLayout(); + // + // labelMoveNotation + // + labelMoveNotation.Dock = System.Windows.Forms.DockStyle.Fill; + labelMoveNotation.Location = new System.Drawing.Point(0, 0); + labelMoveNotation.Name = "labelMoveNotation"; + labelMoveNotation.Size = new System.Drawing.Size(102, 38); + labelMoveNotation.TabIndex = 0; + labelMoveNotation.Text = "label1"; + labelMoveNotation.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // BoardMoveHistoryEntry + // + AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); + AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + Controls.Add(labelMoveNotation); + Name = "BoardMoveHistoryEntry"; + Size = new System.Drawing.Size(102, 38); + ResumeLayout(false); + } + + #endregion + + private System.Windows.Forms.Label labelMoveNotation; + } +} diff --git a/ChessForms/BoardMoveHistoryEntry.cs b/ChessForms/BoardMoveHistoryEntry.cs new file mode 100644 index 0000000..dfad29d --- /dev/null +++ b/ChessForms/BoardMoveHistoryEntry.cs @@ -0,0 +1,20 @@ +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 ChessForms +{ + public partial class BoardMoveHistoryEntry : UserControl + { + public BoardMoveHistoryEntry() + { + InitializeComponent(); + } + } +} diff --git a/ChessForms/BoardMoveHistoryEntry.resx b/ChessForms/BoardMoveHistoryEntry.resx new file mode 100644 index 0000000..a395bff --- /dev/null +++ b/ChessForms/BoardMoveHistoryEntry.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file From 116d338e8876189ae32df6df1dbd3412aeb72d57 Mon Sep 17 00:00:00 2001 From: Kresten Laust Date: Tue, 18 Jul 2023 10:57:18 +0200 Subject: [PATCH 2/2] Added containers to boardmovehistory --- ChessForms/BoardMoveHistory.Designer.cs | 54 ++++++++++++++++++++- ChessForms/BoardMoveHistory.resx | 62 +------------------------ 2 files changed, 53 insertions(+), 63 deletions(-) diff --git a/ChessForms/BoardMoveHistory.Designer.cs b/ChessForms/BoardMoveHistory.Designer.cs index db6341f..9aeab89 100644 --- a/ChessForms/BoardMoveHistory.Designer.cs +++ b/ChessForms/BoardMoveHistory.Designer.cs @@ -28,18 +28,68 @@ protected override void Dispose(bool disposing) /// private void InitializeComponent() { + splitContainer1 = new System.Windows.Forms.SplitContainer(); + flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); + flowLayoutPanel2 = new System.Windows.Forms.FlowLayoutPanel(); + ((System.ComponentModel.ISupportInitialize)splitContainer1).BeginInit(); + splitContainer1.Panel1.SuspendLayout(); + splitContainer1.Panel2.SuspendLayout(); + splitContainer1.SuspendLayout(); SuspendLayout(); // + // splitContainer1 + // + splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill; + splitContainer1.Location = new System.Drawing.Point(0, 0); + splitContainer1.Name = "splitContainer1"; + // + // splitContainer1.Panel1 + // + splitContainer1.Panel1.Controls.Add(flowLayoutPanel1); + // + // splitContainer1.Panel2 + // + splitContainer1.Panel2.Controls.Add(flowLayoutPanel2); + splitContainer1.Size = new System.Drawing.Size(409, 272); + splitContainer1.SplitterDistance = 136; + splitContainer1.TabIndex = 0; + // + // flowLayoutPanel1 + // + flowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; + flowLayoutPanel1.Location = new System.Drawing.Point(0, 0); + flowLayoutPanel1.Name = "flowLayoutPanel1"; + flowLayoutPanel1.Size = new System.Drawing.Size(136, 272); + flowLayoutPanel1.TabIndex = 0; + // + // flowLayoutPanel2 + // + flowLayoutPanel2.Dock = System.Windows.Forms.DockStyle.Fill; + flowLayoutPanel2.Location = new System.Drawing.Point(0, 0); + flowLayoutPanel2.Name = "flowLayoutPanel2"; + flowLayoutPanel2.Size = new System.Drawing.Size(269, 272); + flowLayoutPanel2.TabIndex = 0; + // // BoardMoveHistory // - AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); + AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F); AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - ClientSize = new System.Drawing.Size(358, 204); + ClientSize = new System.Drawing.Size(409, 272); + Controls.Add(splitContainer1); + Margin = new System.Windows.Forms.Padding(3, 4, 3, 4); Name = "BoardMoveHistory"; Text = "BoardMoveHistory"; + splitContainer1.Panel1.ResumeLayout(false); + splitContainer1.Panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)splitContainer1).EndInit(); + splitContainer1.ResumeLayout(false); ResumeLayout(false); } #endregion + + private System.Windows.Forms.SplitContainer splitContainer1; + private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1; + private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel2; } } \ No newline at end of file diff --git a/ChessForms/BoardMoveHistory.resx b/ChessForms/BoardMoveHistory.resx index a395bff..f298a7b 100644 --- a/ChessForms/BoardMoveHistory.resx +++ b/ChessForms/BoardMoveHistory.resx @@ -1,64 +1,4 @@ - - - +