Ejemplo n.º 1
0
        public void CheckScreenCountAndRestore(object sender, RoutedEventArgs e)
        {
            IScreenCount screenCount = new ScreenCount();

            if (_screenCount != screenCount.Value)
            {
                ReloadClick(sender, e);
            }


            Show();
            WindowState = WindowState.Normal;
        }
Ejemplo n.º 2
0
        private void Load()
        {
            IActiveDevices activeDevices = new ActiveDevices();

            BuildDeviceButtons(activeDevices);
            ITaskbarIconConfiguration taskbarIconConfiguration =
                new TaskbarIconConfiguration(this, DisplayRotationTaskbarIcon, activeDevices, _rotateDisplay, _rotateButtonAndCanvas);

            taskbarIconConfiguration.StartMinimized();
            taskbarIconConfiguration.Run();
            IScreenCount screenCount = new ScreenCount();

            _screenCount = screenCount.Value;
        }