forked from Ylianst/MeshCentralRouter
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFileConfirmOverwriteForm.cs
More file actions
28 lines (24 loc) · 912 Bytes
/
Copy pathFileConfirmOverwriteForm.cs
File metadata and controls
28 lines (24 loc) · 912 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
using System;
using System.Windows.Forms;
namespace MeshCentralRouter
{
public partial class FileConfirmOverwriteForm : Form
{
public FileConfirmOverwriteForm()
{
InitializeComponent();
skipCheckBox.Checked = (Settings.GetRegValue("skipExistingFiles", "0") == "1");
}
public string mainTextLabel { get { return mainLabel.Text; } set { mainLabel.Text = value; } }
public bool skipExistingFiles { get { return skipCheckBox.Checked; } set { skipCheckBox.Checked = value; } }
private void okButton_Click(object sender, EventArgs e)
{
Settings.SetRegValue("skipExistingFiles", skipCheckBox.Checked ? "1" : "0");
DialogResult = DialogResult.OK;
}
private void cancelButton_Click(object sender, EventArgs e)
{
DialogResult = DialogResult.Cancel;
}
}
}