/// <summary>
        /// Handler for change of lockscreen type.
        /// Rebuild settings page with settings for new selected lockscreen type.
        /// </summary>
        private void ChangeLockScreenType()
        {
            if (_lockScreenTypeCombo.SelectedIndex == -1) return;

            // get selected plugin type
            var type = _lockScreenTypes[_lockScreenTypeCombo.SelectedIndex];
            _page.Settings.LockScreenSettings.LockScreenClass = type.FullName;

            _lockScreenSettings = LockScreenManager.CreateSettings(type, _page.Settings.LockScreenSettings);

            CreateSettingsControls();
        }
Beispiel #2
0
 public void ApplySettings(ILockScreenSettings settings)
 {
     Settings = settings as AdvancedLockSettings;
     _background.Image = Settings.Background;
     UpdateTime();
 }
Beispiel #3
0
        public void ApplySettings(ILockScreenSettings settings)
        {
            Settings = settings as WPLockSettings;
            _background.Image = Settings.Background;

            // Top Bar
            _topBar._fontColor = Color.FromArgb(Settings.TopBarFontColor);
            _topBar._batteryColor = Settings.TopBarColorBattery;
            if (Settings.TopBarWhiteIcon) { _topBar._typeColorIcon = "white"; } else { _topBar._typeColorIcon = "black"; }

            // Player
            _mediaPlayer._fontColor = Color.FromArgb(Settings.PlayerFontColor);
            if (Settings.PlayerWhiteIcon) { _mediaPlayer._typeColorIcon = "white"; } else { _mediaPlayer._typeColorIcon = "black"; }

            // Date Time
            _style.Foreground = Color.FromArgb(Settings.DateTimeFontColor);
            _lblClock.Style = _style;
            _lblClock.Update();

            // Appointment
            _appointment._fontColor = Color.FromArgb(Settings.AppointmentFontColor);
            if (Settings.AppointmentWhiteIcon) { _appointment._typeColorIcon = "white"; } else { _appointment._typeColorIcon = "black"; }
            //_appointment._liveHourAppointment
            //_appointment._onAppointmentShowTime

            // Status
            _statusPhone._fontColor = Color.FromArgb(Settings.StatusFontColor);
            if (Settings.StatusWhiteIcon) { _statusPhone._typeColorIcon = "white"; } else { _statusPhone._typeColorIcon = "black"; }

            _topBar.UpdateTheme();
            _mediaPlayer.UpdateTheme();
            _appointment.UpdateTheme();
            _statusPhone.UpdateTheme();
            UpdateScreen();
        }
Beispiel #4
0
 // ILockScreen
 public virtual void ApplySettings(ILockScreenSettings settings)
 {
 }