-
Notifications
You must be signed in to change notification settings - Fork 0
/
OutputForm.cs
41 lines (36 loc) · 1.12 KB
/
OutputForm.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System;
using System.Windows.Forms;
namespace MW5LOMLauncherV2
{
public partial class OutputForm : Form
{
private Logic logic;
public OutputForm()
{
InitializeComponent();
this.logic = new Logic(this);
Application.DoEvents();
}
private void textBox1_TextChanged(object sender, EventArgs e)
{
}
public void timer1_Tick(object sender, EventArgs e)
{
timer1.Stop();
try
{
Logic.StartMainProgram();
}
catch (Exception ex)
{
string message = "No executable was found!\nIs this your first time running the launcher without and internet connection?";
string caption = "ERROR Executable not found!";
MessageBoxButtons buttons = MessageBoxButtons.OK;
DialogResult Result = MessageBox.Show(message, caption, buttons);
Console.WriteLine(ex.Message);
Console.WriteLine(ex.StackTrace);
}
Environment.Exit(0);
}
}
}