private void Init() { // was text modified modified = parent.getModified(); // formatting settings btnFontColor.BackColor = Properties.Settings.Default.ForegroundColor; txtFont.Text = Properties.Settings.Default.Font.Name + ", " + Math.Round(Properties.Settings.Default.Font.SizeInPoints) + "pt"; txtTabstoSpaces.Text = Properties.Settings.Default.TabToSpaces.ToString(); chkTabToSpaces.Checked = (Properties.Settings.Default.TabToSpaces != 0); txtTabstoSpaces.Enabled = chkTabToSpaces.Checked; chkAudoIndent.Checked = Properties.Settings.Default.AutoIndent; // page settings txtPageWidth.Text = Properties.Settings.Default.PageWidth.ToString(); chkPageWidth.Checked = (Properties.Settings.Default.PageWidth == 0); txtPageHeight.Text = Properties.Settings.Default.PageHeight.ToString(); chkPageHeight.Checked = (Properties.Settings.Default.PageHeight == 0); txtPageMargin.Text = Properties.Settings.Default.PagePadding.ToString(); btnPageColor.BackColor = Properties.Settings.Default.PageColor; // general (interface) assignments btnBackColor.BackColor = Properties.Settings.Default.BackgroundColor; trcOpacity.Value = Properties.Settings.Default.Opacity; chkMultipleMonitor.Checked = Properties.Settings.Default.MultipleMonitors; chkNav.Checked = Properties.Settings.Default.HideNavigation; chkNeutralHighlighting.Checked = Properties.Settings.Default.NeutralHighlight; chkMinToSystray.Checked = Properties.Settings.Default.MinimizeToSystray; // file settings chkAutosave.Checked = Properties.Settings.Default.Autosave; chkLaunchFullscreen.Checked = Properties.Settings.Default.LaunchFullscreen; // data recovery settings switch (Properties.Settings.Default.DataRecoveryMode) { case (int)Eclectic.DataRecoveryModes.BUFFER: rdoLoadBuffer.Checked = true; break; case (int)Eclectic.DataRecoveryModes.CLEAN: rdoLoadClean.Checked = true; break; case (int)Eclectic.DataRecoveryModes.LAST_FILE: rdoLoadLast.Checked = true; break; } // advanced settings chkContextMenu.Checked = Properties.Settings.Default.OpenWithContextMenu; chkLocalCacheFile.Checked = Properties.Settings.Default.LocalCacheFile; txtCursorBlinkTime.Text = Properties.Settings.Default.CaretBlinkRate.ToString(); }