public void Sync()
{
this.BackColor = Properties.Settings.Default.BackgroundColor;
this.Opacity = (float)(Properties.Settings.Default.Opacity / 100.0);
pnlPage.BackColor = Properties.Settings.Default.PageColor;
txtPage.BackColor = Properties.Settings.Default.PageColor;
txtPage.Font = new Font(Properties.Settings.Default.Font.FontFamily, Properties.Settings.Default.Font.Size, txtPage.Font.Style);
txtPage.ForeColor = Properties.Settings.Default.ForegroundColor;
pnlNav.Visible = !(Properties.Settings.Default.HideNavigation);
pnlNav.BackColor = Properties.Settings.Default.PageColor;
btnPageUp.ForeColor = Properties.Settings.Default.ForegroundColor;
btnLineUp.ForeColor = Properties.Settings.Default.ForegroundColor;
btnLineDown.ForeColor = Properties.Settings.Default.ForegroundColor;
btnPageDown.ForeColor = Properties.Settings.Default.ForegroundColor;
txtPage.TabsToSpaces = Properties.Settings.Default.TabToSpaces;
txtPage.AutoIndent = Properties.Settings.Default.AutoIndent;
if (Properties.Settings.Default.MultipleMonitors)
{
HandleAdditionalScreens((this.WindowState == FormWindowState.Normal) ? 0 : 1);
}
}