Exemplo n.º 1
0
        public void ApplySettings(TimerViewSettings settings)
        {
            this.TimerFont = this.IsPreviewMode ? new Font(settings.TimerFont.FontFamily.Name, OldTimerView.PreviewFontSize) : settings.TimerFont;
            int labelSize = this.IsPreviewMode ? OldTimerView.PreviewLabelSize : (int)Math.Max(settings.TimerFont.Size / 10, 10);
            this.lblCurrentTimer.Font = new Font(settings.TimerFont.FontFamily.Name, labelSize);

            this.BackgroundColor = settings.BackgroundColor;
            this.TimerColor = settings.RunningColor;

            this.settings = TimerViewSettings.ParseCsv(settings.SaveSettingsAsCsv());
            this.lblCurrentTimer.Text = this.settings.Name;
            this.RefreshTimerDisplay();
        }
Exemplo n.º 2
0
        public void ApplySettings(TimerViewSettings settings)
        {
            this.TimerFont = this.IsPreviewMode ? new Font(settings.TimerFont.FontFamily.Name, TimerView.PreviewFontSize) : settings.TimerFont;
            int labelSize = this.IsPreviewMode ? TimerView.PreviewLabelSize : (int)Math.Max(settings.TimerFont.Size / 3, 10);
            this.lblCurrentTimer.Font = new Font(settings.TimerFont.FontFamily.Name, labelSize);

            this.BackgroundColor = settings.BackgroundColor;
            this.TimerColor = settings.RunningColor;

            this.settings = TimerViewSettings.ParseCsv(settings.SaveSettingsAsCsv());
			this.settings.SecondWarningColor = this.settings.MessageColor;

			if (!settings.BlinkOnExpired && this.blinkManager.IsBlinking)
			{
				this.blinkManager.StopBlinking();
			}

            this.lblCurrentTimer.Text = this.settings.Name;
            this.RefreshTimerDisplay();
        }