private IOperation BuildShellOperation() { var aboutInfo = new AboutNotificationInfo(text); var aboutController = new AboutNotificationController(configuration.AppConfig, uiFactory); var logInfo = new LogNotificationInfo(text); var logController = new LogNotificationController(logger, uiFactory); var activators = new IActionCenterActivator[] { new KeyboardActivator(new ModuleLogger(logger, nameof(KeyboardActivator))), new TouchActivator(new ModuleLogger(logger, nameof(TouchActivator))) }; var operation = new ShellOperation( actionCenter, activators, configuration.Settings.ActionCenter, logger, aboutInfo, aboutController, logInfo, logController, keyboardLayout, powerSupply, wirelessNetwork, systemInfo, taskbar, configuration.Settings.Taskbar, terminationActivator, text, uiFactory); return(operation); }
private IOperation BuildShellOperation() { var aboutInfo = new AboutNotificationInfo(text); var aboutController = new AboutNotificationController(configuration.AppConfig, uiFactory); var audio = new Audio(configuration.Settings.Audio, new ModuleLogger(logger, nameof(Audio))); var keyboard = new Keyboard(new ModuleLogger(logger, nameof(Keyboard))); var logInfo = new LogNotificationInfo(text); var logController = new LogNotificationController(logger, uiFactory); var powerSupply = new PowerSupply(new ModuleLogger(logger, nameof(PowerSupply))); var wirelessAdapter = new WirelessAdapter(new ModuleLogger(logger, nameof(WirelessAdapter))); var activators = new IActionCenterActivator[] { new KeyboardActivator(new ModuleLogger(logger, nameof(KeyboardActivator))), new TouchActivator(new ModuleLogger(logger, nameof(TouchActivator))) }; var operation = new ShellOperation( actionCenter, activators, configuration.Settings.ActionCenter, audio, aboutInfo, aboutController, keyboard, logger, logInfo, logController, powerSupply, systemInfo, taskbar, configuration.Settings.Taskbar, terminationActivator, text, uiFactory, wirelessAdapter); return(operation); }
public void Register(IActionCenterActivator activator) { activator.Activated += Activator_Activated; activator.Deactivated += Activator_Deactivated; activator.Toggled += Activator_Toggled; }