public override void SaveSettings() { if (cboLanguage.SelectedIndex > 0 && SupportedCultures.IsNativeNameSupported(Convert.ToString(cboLanguage.SelectedItem))) { Settings.Default.OverrideUICulture = SupportedCultures.get_CultureName(Convert.ToString(cboLanguage.SelectedItem)); } else { Settings.Default.OverrideUICulture = string.Empty; } Settings.Default.ShowDescriptionTooltipsInTree = chkShowDescriptionTooltipsInTree.Checked; Settings.Default.ShowCompleteConsPathInTitle = chkShowFullConnectionsFilePathInTitle.Checked; frmMain.Default.ShowFullPathInTitle = chkShowFullConnectionsFilePathInTitle.Checked; Settings.Default.ShowSystemTrayIcon = chkShowSystemTrayIcon.Checked; if (Settings.Default.ShowSystemTrayIcon) { if (Runtime.NotificationAreaIcon == null) { Runtime.NotificationAreaIcon = new NotificationAreaIcon(); } } else { if (Runtime.NotificationAreaIcon != null) { Runtime.NotificationAreaIcon.Dispose(); Runtime.NotificationAreaIcon = null; } } Settings.Default.MinimizeToTray = chkMinimizeToSystemTray.Checked; Settings.Default.Save(); }