Exemplo n.º 1
0
        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());
        }
Exemplo 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;
        }
Exemplo n.º 3
0
        /// <inheritdoc />
        public MainWindow()
        {
            InitializeComponent();
            var dispatcherTimer = new DispatcherTimer();
            IMainWindowInstance mainWindowInstance = new MainWindowInstance(this);
            IAppSettingFromConfigurationManager appSettingFromConfigurationManager = new AppSettingFromConfigurationManager();
            ITaskbarIconInstance      taskbarIconInstance      = new TaskbarIconInstance(AvailabilityHandlerTaskbarIcon);
            ITaskbarIconContextMenu   taskbarIconContextMenu   = new TaskbarIconContextMenu(mainWindowInstance, taskbarIconInstance);
            ITaskbarIconConfiguration taskbarIconConfiguration = new TaskbarIconConfiguration(mainWindowInstance, taskbarIconInstance, taskbarIconContextMenu);
            ILyncClientInstance       lyncClientInstance       = new CachedLyncClientInstance();
            ILyncAvailability         lyncAvailability         = new LyncAvailability(lyncClientInstance);
            IApplicationList          applicationList          = new CachedApplicationList(appSettingFromConfigurationManager);
            IIsProcessRunning         isProcessRunning         = new IsProcessRunning();
            IDispatcherTimerTick      dispatcherTimerTick      = new DispatcherTimerTick(lyncClientInstance, lyncAvailability, applicationList, isProcessRunning);
            IDispatcherTimerInstance  dispatcherTimerInstance  = new DispatcherTimerInstance(dispatcherTimer, dispatcherTimerTick);
            IProcessDispatcherHandler processDispatcherHandler = new ProcessDispatcherHandler(dispatcherTimerInstance);
            IAutoStart autoStart = new AutoStart(Title, Assembly.GetExecutingAssembly().Location);
            IAutoStartByConfiguration autoStartByConfiguration = new AutoStartByConfiguration(appSettingFromConfigurationManager, autoStart);

            processDispatcherHandler.Run();
            taskbarIconConfiguration.Run();
            autoStartByConfiguration.Run();
        }