From 31262bd5715d60bb17ab188b54e0acbc9c8c1027 Mon Sep 17 00:00:00 2001 From: Lukasz Baldyga Date: Tue, 6 Oct 2020 10:35:56 +0100 Subject: [PATCH] Designed Menu --- .../Advanced Software Engineering.csproj | 3 + .../Form1.Designer.cs | 93 +++++++++++++- .../Advanced Software Engineering/Form1.cs | 4 +- .../Advanced Software Engineering/Form1.resx | 120 ++++++++++++++++++ .../Advanced Software Engineering/Program.cs | 2 +- 5 files changed, 215 insertions(+), 7 deletions(-) create mode 100644 Advanced Software Engineering/Advanced Software Engineering/Form1.resx diff --git a/Advanced Software Engineering/Advanced Software Engineering/Advanced Software Engineering.csproj b/Advanced Software Engineering/Advanced Software Engineering/Advanced Software Engineering.csproj index da996dd..04b8b6d 100644 --- a/Advanced Software Engineering/Advanced Software Engineering/Advanced Software Engineering.csproj +++ b/Advanced Software Engineering/Advanced Software Engineering/Advanced Software Engineering.csproj @@ -54,6 +54,9 @@ + + Form1.cs + ResXFileCodeGenerator Resources.Designer.cs diff --git a/Advanced Software Engineering/Advanced Software Engineering/Form1.Designer.cs b/Advanced Software Engineering/Advanced Software Engineering/Form1.Designer.cs index 94937de..f9ae69c 100644 --- a/Advanced Software Engineering/Advanced Software Engineering/Form1.Designer.cs +++ b/Advanced Software Engineering/Advanced Software Engineering/Form1.Designer.cs @@ -1,6 +1,6 @@ namespace Advanced_Software_Engineering { - partial class Form1 + partial class Menu { /// /// Required designer variable. @@ -28,13 +28,98 @@ /// private void InitializeComponent() { - this.components = new System.ComponentModel.Container(); + this.button1 = new System.Windows.Forms.Button(); + this.button2 = new System.Windows.Forms.Button(); + this.button3 = new System.Windows.Forms.Button(); + this.label1 = new System.Windows.Forms.Label(); + this.label2 = new System.Windows.Forms.Label(); + this.button4 = new System.Windows.Forms.Button(); + this.SuspendLayout(); + // + // button1 + // + this.button1.Location = new System.Drawing.Point(12, 56); + this.button1.Name = "button1"; + this.button1.Size = new System.Drawing.Size(195, 23); + this.button1.TabIndex = 0; + this.button1.Text = "Console"; + this.button1.UseVisualStyleBackColor = true; + // + // button2 + // + this.button2.Location = new System.Drawing.Point(12, 85); + this.button2.Name = "button2"; + this.button2.Size = new System.Drawing.Size(195, 23); + this.button2.TabIndex = 0; + this.button2.Text = "Text Editor"; + this.button2.UseVisualStyleBackColor = true; + // + // button3 + // + this.button3.Location = new System.Drawing.Point(12, 114); + this.button3.Name = "button3"; + this.button3.Size = new System.Drawing.Size(195, 23); + this.button3.TabIndex = 0; + this.button3.Text = "Exit"; + this.button3.UseVisualStyleBackColor = true; + // + // label1 + // + this.label1.AutoSize = true; + this.label1.Location = new System.Drawing.Point(13, 13); + this.label1.Name = "label1"; + this.label1.Size = new System.Drawing.Size(160, 13); + this.label1.TabIndex = 1; + this.label1.Text = "Advanced Software Engineering"; + // + // label2 + // + this.label2.AutoSize = true; + this.label2.Location = new System.Drawing.Point(13, 30); + this.label2.Name = "label2"; + this.label2.Size = new System.Drawing.Size(88, 13); + this.label2.TabIndex = 2; + this.label2.Text = "Drawing Program"; + // + // button4 + // + this.button4.Location = new System.Drawing.Point(12, 143); + this.button4.Name = "button4"; + this.button4.Size = new System.Drawing.Size(195, 23); + this.button4.TabIndex = 0; + this.button4.Text = "Exit"; + this.button4.UseVisualStyleBackColor = true; + // + // Menu + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(800, 450); - this.Text = "Form1"; + this.ClientSize = new System.Drawing.Size(219, 176); + this.Controls.Add(this.label2); + this.Controls.Add(this.label1); + this.Controls.Add(this.button4); + this.Controls.Add(this.button3); + this.Controls.Add(this.button2); + this.Controls.Add(this.button1); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle; + this.MaximizeBox = false; + this.MinimizeBox = false; + this.Name = "Menu"; + this.SizeGripStyle = System.Windows.Forms.SizeGripStyle.Hide; + this.Text = "Menu"; + this.ResumeLayout(false); + this.PerformLayout(); + } #endregion + + private System.Windows.Forms.Button button1; + private System.Windows.Forms.Button button2; + private System.Windows.Forms.Button button3; + private System.Windows.Forms.Label label1; + private System.Windows.Forms.Label label2; + private System.Windows.Forms.Button button4; } } diff --git a/Advanced Software Engineering/Advanced Software Engineering/Form1.cs b/Advanced Software Engineering/Advanced Software Engineering/Form1.cs index 62ddaea..23cd802 100644 --- a/Advanced Software Engineering/Advanced Software Engineering/Form1.cs +++ b/Advanced Software Engineering/Advanced Software Engineering/Form1.cs @@ -10,9 +10,9 @@ using System.Windows.Forms; namespace Advanced_Software_Engineering { - public partial class Form1 : Form + public partial class Menu : Form { - public Form1() + public Menu() { InitializeComponent(); } diff --git a/Advanced Software Engineering/Advanced Software Engineering/Form1.resx b/Advanced Software Engineering/Advanced Software Engineering/Form1.resx new file mode 100644 index 0000000..1af7de1 --- /dev/null +++ b/Advanced Software Engineering/Advanced Software Engineering/Form1.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/Advanced Software Engineering/Advanced Software Engineering/Program.cs b/Advanced Software Engineering/Advanced Software Engineering/Program.cs index 374159b..b6f6ba3 100644 --- a/Advanced Software Engineering/Advanced Software Engineering/Program.cs +++ b/Advanced Software Engineering/Advanced Software Engineering/Program.cs @@ -16,7 +16,7 @@ namespace Advanced_Software_Engineering { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); - Application.Run(new Form1()); + Application.Run(new Menu()); } } }