forked from Lilyy2565/Minecraft-Server-GUI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGetServer.cs
More file actions
39 lines (34 loc) · 928 Bytes
/
GetServer.cs
File metadata and controls
39 lines (34 loc) · 928 Bytes
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
using System.Diagnostics;
using System.Windows.Forms;
namespace Minecraft_Server_GUI
{
public partial class GetServer : Form
{
public GetServer()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
DialogResult result = folderBrowserDialog1.ShowDialog();
if(result == DialogResult.OK)
{
Settings1.Default.serverPath = folderBrowserDialog1.SelectedPath + @"\";
Settings1.Default.Save();
this.Close();
}
else
{
this.Close();
}
}
private void button2_Click(object sender, EventArgs e)
{
throw new NotImplementedException();
}
private void button3_Click(object sender, EventArgs e)
{
this.Close();
}
}
}