-
Notifications
You must be signed in to change notification settings - Fork 0
/
Form1.cs
47 lines (41 loc) · 1.22 KB
/
Form1.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
42
43
44
45
46
47
using System;
using System.IO;
using System.Windows.Forms;
namespace Shrek_2_team_action_tools
{
public partial class MainForm : Form
{
public static Settings settings = new Settings(1251, "", "");
public MainForm()
{
InitializeComponent();
}
private void settingsBtn_Click(object sender, EventArgs e)
{
SettingsForm settings = new SettingsForm();
settings.Show();
}
private void MainForm_Load(object sender, EventArgs e)
{
if (File.Exists(AppDomain.CurrentDomain.BaseDirectory + "config.xml"))
{
Settings.Load(settings);
}
}
private void npcToolBtn_Click(object sender, EventArgs e)
{
npcForm npc = new npcForm();
npc.Show();
}
private void resToolBtn_Click(object sender, EventArgs e)
{
resForm res = new resForm();
res.Show();
}
private void fontEditorBtn_Click(object sender, EventArgs e)
{
fontEditorForm fontEditor = new fontEditorForm();
fontEditor.Show();
}
}
}