private void SyncFormLoad(object sender, EventArgs e) { _settings = FrbdkUpdaterSettings.LoadSettings(); if (!string.IsNullOrEmpty(_settings.SelectedDirectory)) { tbPath.Text = _settings.SelectedDirectory; } cbCleanFolder.Checked = _settings.CleanFolder; cbForceDownload.Checked = _settings.ForceDownload; }
private void SyncFormLoad(object sender, EventArgs e) { BuildMenu(); _settings = FrbdkUpdaterSettings.LoadSettings(); tbPath.Text = _settings.SelectedDirectory; foreach (Item item in cbSyncTo.Items) { if (item.Value == _settings.SelectedSource) { cbSyncTo.SelectedItem = item; break; } } cbCleanFolder.Checked = _settings.CleanFolder; cbForceDownload.Checked = _settings.ForceDownload; }