internal void updateGuiFromSettingsObject(Entities.DisplayAndPrintSettings displayAndPrintSettings)
 {
     this.displayAndPrintSettings = displayAndPrintSettings;
     titleColorPicker.setFontFormat(displayAndPrintSettings.TitleFormat);
     headingsColorPicker.setFontFormat(displayAndPrintSettings.HeadingsFormat);
     chordsColorPicker.setFontFormat(displayAndPrintSettings.ChordFormat);
     lyricsColorPicker.setFontFormat(displayAndPrintSettings.LyricsFormat);
     notesColorPicker.setFontFormat(displayAndPrintSettings.NoteFormat);
     backgroundColor.setColor(displayAndPrintSettings.BackgroundColor);
     verseHeadingBackgroundColor.setColor(displayAndPrintSettings.VerseHeadingBackgroundColor);
     paritalVerseHeadingBackgroundColor.setColor(displayAndPrintSettings.PartialVerseHeadingBackgroundColor);
     verseLyricsBackgroundColor1.setColor(displayAndPrintSettings.VerseLyricsBackground1Color);
     verseLyricsBackgroundColor2.setColor(displayAndPrintSettings.VerseLyricsBackground2Color);
     verseLyricsBorderColor.setColor(displayAndPrintSettings.VerseBorderColor);
 }
        public UserInterfacePreferences()
        {
            var userInterfaceSettings = Entities.UserInterfaceSettings.Instance;

            lyricsColorPicker  = new FontAndColorPicker("Lyrics", FontAndColorPicker.FontAndColorPickerType.Font, true);
            notesColorPicker   = new FontAndColorPicker("Notes", FontAndColorPicker.FontAndColorPickerType.Font, false);
            textboxColorPicker = new FontAndColorPicker("Textbox", FontAndColorPicker.FontAndColorPickerType.Font, false);
            labelColorPicker   = new FontAndColorPicker("Labels", FontAndColorPicker.FontAndColorPickerType.Font, false);


            Content = new TableLayout()
            {
                Style = "padded-table",
                Rows  =
                {
                    new TableRow()
                    {
                        Cells =
                        {
                            new Label(),
                            new Label()
                            {
                                Text = "Font"
                            },
                            new Label()
                            {
                                Text = "Size"
                            },
                        }
                    },
                    lyricsColorPicker,
                    notesColorPicker,
                    textboxColorPicker,
                    null
                }
            };

            lyricsColorPicker.setFontFormat(userInterfaceSettings.LyricsFormat);
            notesColorPicker.setFontFormat(userInterfaceSettings.NoteFormat);
            textboxColorPicker.setFontFormat(userInterfaceSettings.TextboxFormat);
            labelColorPicker.setFontFormat(userInterfaceSettings.LabelFormat);
        }