예제 #1
0
		public MainForm()
		{
			InitializeComponent();
			
			SetLiveFormScreen();
			
			this.worship = new Worship();
			this.settings= new Settings();
			
			liveForm.Show();
		}
예제 #2
0
		public void SetSettings(Settings settings)
		{
			this.settings=settings;
			
			titleColor = Color.FromArgb(settings.titleColor);
			verseColor = Color.FromArgb(settings.verseColor);
			verseNumberColor = Color.FromArgb(settings.verseNumberColor);
			backgroundColor = Color.FromArgb(settings.backgroundColor);
			
			titleFont = new Font(settings.titleFontName,settings.titleFontSize);
			verseFont = new Font(settings.verseFontName,settings.verseFontSize);
			verseNumberFont = new Font(settings.verseNumberFontName,settings.verseNumberFontSize);
			
			textBoxTopPercentage.Text = settings.topPercentage.ToString();
			textBoxBottomPercentage.Text = settings.bottomPercentage.ToString();
			
			checkBoxNewLineEachVerse.Checked = settings.newLineEachVerse;
			checkBoxPrintTitleAtBottom.Checked = settings.printTitleAtBottom;
			checkBoxPrintTitleAtTop.Checked = settings.printTitleAtTop;
			checkBoxPrintTitleAtTopAlways.Checked = settings.printTitleAlways;
		}