-
Notifications
You must be signed in to change notification settings - Fork 2
/
SettingsForm.cs
54 lines (46 loc) · 1.58 KB
/
SettingsForm.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
48
49
50
51
52
53
54
using System;
using System.Windows.Forms;
namespace GHLCP
{
public partial class SettingsForm : Form
{
public SettingsForm()
{
InitializeComponent();
chbImportVideo.Checked = Properties.Settings.Default.importVideo;
chbImportParent.Checked = Properties.Settings.Default.importParent;
txtRPCS3exe.Text = Properties.Settings.Default.rpcs3Exe;
}
private void btnRPCS3exe_Click(object sender, EventArgs e)
{
OpenFileDialog rpcs3exeDialog = new OpenFileDialog
{
Title = "Open RPCS3 executable",
Filter = "RPCS3 executable|rpcs3.exe",
FileName = txtRPCS3exe.Text
};
if (rpcs3exeDialog.ShowDialog() == DialogResult.OK)
{
txtRPCS3exe.Text = rpcs3exeDialog.FileName;
}
}
private void btnDefault_Click(object sender, EventArgs e)
{
chbImportVideo.Checked = true;
chbImportParent.Checked = false;
txtRPCS3exe.Text = "";
}
private void btnSave_Click(object sender, EventArgs e)
{
Properties.Settings.Default.importVideo = chbImportVideo.Checked;
Properties.Settings.Default.importParent = chbImportParent.Checked;
Properties.Settings.Default.rpcs3Exe = txtRPCS3exe.Text;
Properties.Settings.Default.Save();
Close();
}
private void btnCancel_Click(object sender, EventArgs e)
{
Close();
}
}
}