public void CheckScreenCountAndRestore(object sender, RoutedEventArgs e) { IScreenCount screenCount = new ScreenCount(); if (_screenCount != screenCount.Value) { ReloadClick(sender, e); } Show(); WindowState = WindowState.Normal; }
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; }