From 9f5051b21ca667907175c228cb193e0c716c8046 Mon Sep 17 00:00:00 2001 From: Lukasz Baldyga Date: Wed, 7 Oct 2020 18:01:14 +0100 Subject: [PATCH] Redesigned some of DataPreview --- .../DrawPreview.Designer.cs | 49 +++++++++++++++++-- .../DrawPreview.cs | 4 +- .../Advanced Software Engineering/Menu.cs | 2 +- 3 files changed, 48 insertions(+), 7 deletions(-) diff --git a/Advanced Software Engineering/Advanced Software Engineering/DrawPreview.Designer.cs b/Advanced Software Engineering/Advanced Software Engineering/DrawPreview.Designer.cs index ca7de09..f38f9b3 100644 --- a/Advanced Software Engineering/Advanced Software Engineering/DrawPreview.Designer.cs +++ b/Advanced Software Engineering/Advanced Software Engineering/DrawPreview.Designer.cs @@ -1,6 +1,6 @@ namespace Advanced_Software_Engineering { - partial class DrawPreview + partial class Draw_Preview { /// /// Required designer variable. @@ -28,21 +28,62 @@ /// private void InitializeComponent() { + this.button1 = new System.Windows.Forms.Button(); + this.textBox1 = new System.Windows.Forms.TextBox(); + this.panel1 = new System.Windows.Forms.Panel(); this.SuspendLayout(); // - // DrawPreview + // button1 + // + this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); + this.button1.Location = new System.Drawing.Point(455, 480); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(83, 22); + this.button1.TabIndex = 0; + this.button1.Text = "Submit"; + this.button1.UseVisualStyleBackColor = true; + // + // textBox1 + // + this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.textBox1.Location = new System.Drawing.Point(0, 481); + this.textBox1.Name = "textBox1"; + this.textBox1.Size = new System.Drawing.Size(449, 20); + this.textBox1.TabIndex = 1; + // + // panel1 + // + this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) + | System.Windows.Forms.AnchorStyles.Left) + | System.Windows.Forms.AnchorStyles.Right))); + this.panel1.BackColor = System.Drawing.Color.White; + this.panel1.Location = new System.Drawing.Point(0, -1); + this.panel1.Name = "panel1"; + this.panel1.Size = new System.Drawing.Size(537, 476); + this.panel1.TabIndex = 2; + // + // Draw_Preview // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(438, 501); - this.Name = "DrawPreview"; + this.ClientSize = new System.Drawing.Size(537, 501); + this.Controls.Add(this.panel1); + this.Controls.Add(this.textBox1); + this.Controls.Add(this.button1); + this.Name = "Draw_Preview"; this.Text = "Draw Preview"; this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.DrawPreview_FormClosed); this.Paint += new System.Windows.Forms.PaintEventHandler(this.DrawPreview_Paint); this.ResumeLayout(false); + this.PerformLayout(); } #endregion + + private System.Windows.Forms.Button button1; + private System.Windows.Forms.TextBox textBox1; + private System.Windows.Forms.Panel panel1; } } \ No newline at end of file diff --git a/Advanced Software Engineering/Advanced Software Engineering/DrawPreview.cs b/Advanced Software Engineering/Advanced Software Engineering/DrawPreview.cs index 65cbb76..07e1673 100644 --- a/Advanced Software Engineering/Advanced Software Engineering/DrawPreview.cs +++ b/Advanced Software Engineering/Advanced Software Engineering/DrawPreview.cs @@ -10,9 +10,9 @@ using System.Windows.Forms; namespace Advanced_Software_Engineering { - public partial class DrawPreview : Form + public partial class Draw_Preview : Form { - public DrawPreview() + public Draw_Preview() { InitializeComponent(); SettingsAndHelperFunctions.NumberOfWindows++; diff --git a/Advanced Software Engineering/Advanced Software Engineering/Menu.cs b/Advanced Software Engineering/Advanced Software Engineering/Menu.cs index 8cca021..f75292e 100644 --- a/Advanced Software Engineering/Advanced Software Engineering/Menu.cs +++ b/Advanced Software Engineering/Advanced Software Engineering/Menu.cs @@ -19,7 +19,7 @@ namespace Advanced_Software_Engineering private void button1_Click(object sender, EventArgs e) { - new DrawPreview().Show(); + new Draw_Preview().Show(); this.Hide(); }