Redesigned some of DataPreview

This commit is contained in:
Lukasz Baldyga committed 2020-10-07 18:01:14 +01:00
1 parent a5bebd1819
commit 9f5051b21c
3 files changed
+48 -7

No files matched your search

@@ -1,6 +1,6 @@
namespace Advanced_Software_Engineering namespace Advanced_Software_Engineering
{ {
partial class DrawPreview partial class Draw_Preview
{ {
/// <summary> /// <summary>
/// Required designer variable. /// Required designer variable.
@@ -28,21 +28,62 @@
/// </summary> /// </summary>
private void InitializeComponent() 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(); 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.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(438, 501); this.ClientSize = new System.Drawing.Size(537, 501);
this.Name = "DrawPreview"; this.Controls.Add(this.panel1);
this.Controls.Add(this.textBox1);
this.Controls.Add(this.button1);
this.Name = "Draw_Preview";
this.Text = "Draw Preview"; this.Text = "Draw Preview";
this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.DrawPreview_FormClosed); this.FormClosed += new System.Windows.Forms.FormClosedEventHandler(this.DrawPreview_FormClosed);
this.Paint += new System.Windows.Forms.PaintEventHandler(this.DrawPreview_Paint); this.Paint += new System.Windows.Forms.PaintEventHandler(this.DrawPreview_Paint);
this.ResumeLayout(false); this.ResumeLayout(false);
this.PerformLayout();
} }
#endregion #endregion
private System.Windows.Forms.Button button1;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Panel panel1;
} }
} }
@@ -10,9 +10,9 @@ using System.Windows.Forms;
namespace Advanced_Software_Engineering namespace Advanced_Software_Engineering
{ {
public partial class DrawPreview : Form public partial class Draw_Preview : Form
{ {
public DrawPreview() public Draw_Preview()
{ {
InitializeComponent(); InitializeComponent();
SettingsAndHelperFunctions.NumberOfWindows++; SettingsAndHelperFunctions.NumberOfWindows++;
@@ -19,7 +19,7 @@ namespace Advanced_Software_Engineering
private void button1_Click(object sender, EventArgs e) private void button1_Click(object sender, EventArgs e)
{ {
new DrawPreview().Show(); new Draw_Preview().Show();
this.Hide(); this.Hide();
} }