Files
2020-10-06 11:37:26 +01:00

55 lines
1.3 KiB
C#

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 Advanced_Software_Engineering
{
public partial class Menu : Form
{
public Menu()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
SettingsAndHelperFunctions.NumberOfWindows++;
new Console().Show();
this.Hide();
}
private void button2_Click(object sender, EventArgs e)
{
SettingsAndHelperFunctions.NumberOfWindows++;
this.Hide();
}
private void button3_Click(object sender, EventArgs e)
{
SettingsAndHelperFunctions.NumberOfWindows++;
this.Hide();
}
private void button4_Click(object sender, EventArgs e)
{
this.Close();
}
public static void CheckWindows()
{
if (SettingsAndHelperFunctions.NumberOfWindows == 0) Menu.Show();
}
private void Menu_Load(object sender, EventArgs e)
{
//Do things on load
}
}
}