private void Preferences_Load(object sender, EventArgs e)
{
comboBoxMethod.SelectedIndex = (int) SyncFolder.StringToMethod(Properties.Settings.Default.Method);
comboBoxOrderType.SelectedIndex = (int)SyncFolder.StringToOrderType(Properties.Settings.Default.OrderType);
checkBoxNoDelete.Checked = Properties.Settings.Default.NoDelete;
checkBoxNoDeleteTags.Checked = Properties.Settings.Default.NoDeleteTags;
checkBoxShowThumbnailImages.Checked = Properties.Settings.Default.UseThumbnailImages;
checkBoxUseProxy.Checked = Properties.Settings.Default.ProxyUse;
SetProxyState();
textBoxProxyHost.Text = Properties.Settings.Default.ProxyHost;
textBoxProxyPort.Text = Properties.Settings.Default.ProxyPort;
textBoxProxyUser.Text = Properties.Settings.Default.ProxyUser;
textBoxProxyPass.Text = Properties.Settings.Default.ProxyPass;
comboBoxMsgLevel.SelectedIndex=(int) FlickrSync.StringToMsgLevel(Properties.Settings.Default.MessageLevel);
comboBoxLogLevel.SelectedIndex = (int)FlickrSync.StringToLogLevel(Properties.Settings.Default.LogLevel);
labelLogFile.Text=Properties.Settings.Default.LogFile;
buttonLogFile.Visible = (((FlickrSync.LogLevel) comboBoxLogLevel.SelectedIndex)!=FlickrSync.LogLevel.LogNone);
labelLogFile.Visible = (((FlickrSync.LogLevel) comboBoxLogLevel.SelectedIndex)!=FlickrSync.LogLevel.LogNone);
}