Exemple #1
0
        private void Properties_OnChanged(TaskbarProperties.ChangedFields changes)
        {
            DisplayClock();

            var taskbarLocation = this.TaskbarLocation;

            SetPosition(changes.HasFlag(TaskbarProperties.ChangedFields.AutoHide), taskbarLocation);

            if (changes.HasFlag(TaskbarProperties.ChangedFields.MirrorButtons))
            {
                if (TaskbarPropertiesManager.Instance.Properties.MirrorButtons)
                {
                    WindowManager.Instance.MoveProgramsToPrimary();
                    WindowManager.Instance.MoveProgramsToTaskbars();
                }
                else
                {
                    flowPanel.Reset();
                    WindowManager.Instance.MoveProgramsToTaskbars();
                }
            }

            pnlNotificationArea.Visible = TaskbarPropertiesManager.Instance.Properties.ShowNotificationArea;

            if (TaskbarPropertiesManager.Instance.Properties.AutoHide)
            {
                this.Autohide(true);
            }
            else
            {
                this.Autohide(false);
            }

            AutoUpdateManager.Run(this);

            ABSetPos(changes.HasFlag(TaskbarProperties.ChangedFields.AutoHide));
        }