1
0
mirror of https://github.com/Ylianst/MeshCentralRouter synced 2026-02-22 12:23:24 +00:00

Added file transfer skip if file already exists.

This commit is contained in:
Ylian Saint-Hilaire
2021-08-05 10:50:26 -07:00
parent 3dd4c24b41
commit f2d23d75c3
3 changed files with 139 additions and 16 deletions

View File

@@ -8,12 +8,15 @@ namespace MeshCentralRouter
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;
}