public void RefreshSettings()
{
this.checkBoxTypeAllData.Checked = Project.ARChiveSettings.Type.HasFlag(BackupType.AllData);
this.checkBoxTypeMaps.Checked = Project.ARChiveSettings.Type.HasFlag(BackupType.Maps);
this.checkBoxTypeScripts.Checked = Project.ARChiveSettings.Type.HasFlag(BackupType.Scripts);
switch (Project.ARChiveSettings.Frequency)
{
case BackupFrequency.Run: this.radioButtonRun.Checked = true; break;
case BackupFrequency.Debug: this.radioButtonDebug.Checked = true; break;
case BackupFrequency.Save: this.radioButtonSave.Checked = true; break;
case BackupFrequency.Timed: this.radioButtonInterval.Checked = true; break;
default: this.radioButtonNone.Checked = true; break;
}
this.numericInterval.Enabled = this.radioButtonInterval.Checked;
this.SetDirectory();
}