Beispiel #1
0
 private void dotFontButton_Click(object sender, EventArgs e)
 {
     fontDialog.Font = new System.Drawing.Font(dotFont.family, dotFont.size);
     if (fontDialog.ShowDialog() == DialogResult.OK)
     {
         dotFont = new WordSlideEngine.Font {
             family = fontDialog.Font.FontFamily.Name, size = (int)fontDialog.Font.Size
         };
     }
 }
Beispiel #2
0
 private void loadSettings()
 {
     autoUpdateCheckBox.Checked = engine.Options.AutoUpdate;
     titleFont                  = engine.Options.TitleFont;
     textFont                   = engine.Options.TextFont;
     bylineFont                 = engine.Options.BylineFont;
     dotFont                    = engine.Options.DotFont;
     backColor                  = Color.FromArgb(engine.Options.BackgroundColor);
     textColor                  = Color.FromArgb(engine.Options.TextColor);
     songEndString.Text         = engine.Options.SongEnd;
     showEndString.Text         = engine.Options.ShowEnd;
     defaultAlign.Checked       = (engine.Options.TextStart == Options.TextStartDefault);
     topAlign.Checked           = !defaultAlign.Checked;
     keyList                    = new Keys[11];
     keyList[0]                 = (Keys)Enum.Parse(typeof(Keys), engine.Options.ExitKey, true);
     keyList[1]                 = (Keys)Enum.Parse(typeof(Keys), engine.Options.ForwardKey, true);
     keyList[2]                 = (Keys)Enum.Parse(typeof(Keys), engine.Options.BackwardKey, true);
     keyList[3]                 = (Keys)Enum.Parse(typeof(Keys), engine.Options.BlankKey, true);
     keyList[4]                 = (Keys)Enum.Parse(typeof(Keys), engine.Options.ChorusKey, true);
     keyList[5]                 = (Keys)Enum.Parse(typeof(Keys), engine.Options.SongForwardKey, true);
     keyList[6]                 = (Keys)Enum.Parse(typeof(Keys), engine.Options.SongBackwardKey, true);
     keyList[7]                 = (Keys)Enum.Parse(typeof(Keys), engine.Options.VerseForwardKey, true);
     keyList[8]                 = (Keys)Enum.Parse(typeof(Keys), engine.Options.VerseBackwardKey, true);
     keyList[9]                 = (Keys)Enum.Parse(typeof(Keys), engine.Options.HelpKey, true);
     keyList[10]                = (Keys)Enum.Parse(typeof(Keys), engine.Options.TestKey, true);
     exitBox.Text               = keyList[0].ToString();
     forwardSlideBox.Text       = keyList[1].ToString();
     backwardSlideBox.Text      = keyList[2].ToString();
     blankBox.Text              = keyList[3].ToString();
     chorusBox.Text             = keyList[4].ToString();
     forwardSongBox.Text        = keyList[5].ToString();
     backwardSongBox.Text       = keyList[6].ToString();
     forwardVerseBox.Text       = keyList[7].ToString();
     backwardVerseBox.Text      = keyList[8].ToString();
     helpBox.Text               = keyList[9].ToString();
     testBox.Text               = keyList[10].ToString();
     autoBackupCheckBox.Checked = engine.Options.AutoBackup;
     intervalBox.SelectedIndex  = engine.Options.BackupInterval;
     intervalBox.Enabled        = autoBackupCheckBox.Checked;
     checkExistingBackup();
 }