Пример #1
0
        public BackgroundForm(LayoutSettings settings)
        {
            InitializeComponent();

            // Background form is only visible if we are displaying the splash screen on the primary display
            primaryLabel.Visible = secondaryLabel.Visible = false;

            var fontSettings = settings.SplashScreen.FontSettings;

            primaryLabel.Font   = new Font(fontSettings.Face, fontSettings.Size, FontStyle.Bold, GraphicsUnit.Point);
            secondaryLabel.Font = new Font(fontSettings.Face, fontSettings.Size * 0.9f, FontStyle.Regular, GraphicsUnit.Point);
        }
Пример #2
0
 public BlankScreen(LayoutSettings layoutSettings, PowerManager powerManager)
 {
     _powerManager  = powerManager;
     BackgroundForm = new BackgroundForm(layoutSettings);
 }