-
Notifications
You must be signed in to change notification settings - Fork 0
/
ConfigForm.cs
37 lines (34 loc) · 1.13 KB
/
ConfigForm.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
using Gb_Gbc_Gba_Emulator_Launcher.Properties;
using System;
using System.Configuration;
using System.Windows.Forms;
namespace Gb_Gbc_Gba_Emulator_Launcher
{
public partial class ConfigForm : Form
{
Configuration config;
public ConfigForm()
{
InitializeComponent();
}
private void ConfigForm_Load(object sender, EventArgs e)
{
if (Settings.Default.defaultEmulatorPath != null)
{
txtDefaultEmulatorPath.Text = Settings.Default.defaultEmulatorPath;
}
}
private void btnDefaultEmulatorPathChoose_Click(object sender, EventArgs e)
{
OpenFileDialog fileDialog = new OpenFileDialog();
fileDialog.Filter = "Programas|*.exe";
if (fileDialog.ShowDialog() == DialogResult.OK)
{
Settings.Default.defaultEmulatorPath = fileDialog.FileName;
Settings.Default.Save();
txtDefaultEmulatorPath.Text = fileDialog.FileName;
}
fileDialog.Dispose();
}
}
}