private void Load() { IScriptPaths scriptPaths = new ScriptPaths(); IExecutePowerShellScript executePowerShellScript = new ExecutePowerShellScript(); ITaskbarIconConfiguration taskbarIconConfiguration = new TaskbarIconConfiguration(this, PowerShellRunnerTaskbarIcon, executePowerShellScript, scriptPaths); taskbarIconConfiguration.StartMinimized(); taskbarIconConfiguration.Run(); //MessageBox.Show(stringBuilder.ToString()); }
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; }