Added basic code

This commit is contained in:
Lukasz Baldyga committed 2020-10-06 11:05:54 +01:00
1 parent f1252e972b
commit dbdde96a0d
4 files changed
+43 -5

No files matched your search

@@ -46,16 +46,17 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Form1.cs">
<Compile Include="Settings.cs" />
<Compile Include="Menu.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
<Compile Include="Menu.Designer.cs">
<DependentUpon>Menu.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
<EmbeddedResource Include="Menu.resx">
<DependentUpon>Menu.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
@@ -44,6 +44,7 @@
this.button1.TabIndex = 0;
this.button1.Text = "Console";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// button2
//
@@ -53,6 +54,7 @@
this.button2.TabIndex = 0;
this.button2.Text = "Text Editor";
this.button2.UseVisualStyleBackColor = true;
this.button2.Click += new System.EventHandler(this.button2_Click);
//
// button3
//
@@ -62,6 +64,7 @@
this.button3.TabIndex = 0;
this.button3.Text = "About";
this.button3.UseVisualStyleBackColor = true;
this.button3.Click += new System.EventHandler(this.button3_Click);
//
// label1
//
@@ -89,6 +92,7 @@
this.button4.TabIndex = 0;
this.button4.Text = "Exit";
this.button4.UseVisualStyleBackColor = true;
this.button4.Click += new System.EventHandler(this.button4_Click);
//
// Menu
//
@@ -16,5 +16,25 @@ namespace Advanced_Software_Engineering
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
Settings.NumberOfWindows++;
}
private void button2_Click(object sender, EventArgs e)
{
Settings.NumberOfWindows++;
}
private void button3_Click(object sender, EventArgs e)
{
Settings.NumberOfWindows++;
}
private void button4_Click(object sender, EventArgs e)
{
this.Close();
}
}
}
@@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Advanced_Software_Engineering
{
class Settings
{
public static int NumberOfWindows = 0;
}
}