-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathTestDialog.cs
47 lines (42 loc) · 1.1 KB
/
TestDialog.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
/*
* YOGEME.exe, All-in-one Mission Editor for the X-wing series, XW through XWA
* Copyright (C) 2007-2024 Michael Gaisser (mjgaisser@gmail.com)
* Licensed under the MPL v2.0 or later
*
* VERSION: 1.16
*
* CHANGELOG
* v1.16, 241013
* [UPD] cleanup
* v1.2.3, 141214
* [UPD] change to MPL
* v1.1.1, 120814
* - class renamed
* v1.1, 120715
* - Created, enabled in v1.2
*/
using System;
using System.Windows.Forms;
namespace Idmr.Yogeme
{
public partial class TestDialog : Form
{
readonly Settings _config = Settings.GetInstance();
public TestDialog()
{
InitializeComponent();
chkVerify.Checked = _config.VerifyTest;
chkDelete.Checked = _config.DeleteTestPilots;
// can't check DoNotShow, otherwise this wouldn't have been launched in the first place :P
if (!_config.Verify) chkVerify.Enabled = true;
}
void cmdCancel_Click(object sender, EventArgs e) => Close();
void cmdTest_Click(object sender, EventArgs e)
{
_config.VerifyTest = chkVerify.Checked;
_config.DeleteTestPilots = chkDelete.Checked;
_config.ConfirmTest = !chkDoNotShow.Checked;
Close();
}
}
}