aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/MainMenu/MainMenu.cs
diff options
context:
space:
mode:
Diffstat (limited to 'ShiftOS.WinForms/MainMenu/MainMenu.cs')
-rw-r--r--ShiftOS.WinForms/MainMenu/MainMenu.cs13
1 files changed, 9 insertions, 4 deletions
diff --git a/ShiftOS.WinForms/MainMenu/MainMenu.cs b/ShiftOS.WinForms/MainMenu/MainMenu.cs
index e11edc2..1936fec 100644
--- a/ShiftOS.WinForms/MainMenu/MainMenu.cs
+++ b/ShiftOS.WinForms/MainMenu/MainMenu.cs
@@ -15,6 +15,11 @@ namespace ShiftOS.WinForms.MainMenu
{
public partial class MainMenu : Form
{
+ private void StartGame()
+ {
+ new Loading().Show();
+ }
+
public MainMenu(IDesktop desk)
{
InitializeComponent();
@@ -163,7 +168,7 @@ namespace ShiftOS.WinForms.MainMenu
private void button2_Click(object sender, EventArgs e)
{
(Desktop.CurrentDesktop as WinformsDesktop).IsSandbox = true;
- Desktop.CurrentDesktop.Show();
+ StartGame();
}
private void button3_Click(object sender, EventArgs e)
@@ -239,7 +244,7 @@ namespace ShiftOS.WinForms.MainMenu
private void btncontinue_Click(object sender, EventArgs e)
{
- Desktop.CurrentDesktop.Show();
+ StartGame();
}
@@ -253,13 +258,13 @@ namespace ShiftOS.WinForms.MainMenu
if (result == true)
{
System.IO.File.Delete(path);
- Desktop.CurrentDesktop.Show();
+ StartGame();
}
});
}
else
{
- Desktop.CurrentDesktop.Show();
+ StartGame();
}
}
}