private void InitializeKeyboardLayoutForActionCenter() { if (Context.Settings.ActionCenter.ShowKeyboardLayout) { actionCenter.AddSystemControl(uiFactory.CreateKeyboardLayoutControl(keyboard, Location.ActionCenter)); } }
private void InitializeKeyboardLayoutForActionCenter() { if (actionCenterSettings.ShowKeyboardLayout) { var control = uiFactory.CreateKeyboardLayoutControl(Location.ActionCenter); keyboardLayout.Register(control); actionCenter.AddSystemControl(control); } }
internal SEBContext(AppSettings settings) { appSettings = settings; logger = new Logger(); hashAlgorithm = new HashAlgorithm(); InitializeLogging(); InitializeText(); _dispatcher = Dispatcher.CurrentDispatcher; uiFactory = new UserInterfaceFactory(text); messageBox = new MessageBoxFactory(text); taskbar = uiFactory.CreateTaskbar(logger); taskbar.QuitButtonClicked += Shell_QuitButtonClicked; taskbar.Show(); workingAreaHandler = new WorkingAreaHandler(new ModuleLogger(logger, nameof(WorkingAreaHandler))); workingAreaHandler.InitializeWorkingArea(taskbar.GetAbsoluteHeight()); taskview = uiFactory.CreateTaskview(); var audioSettings = new AudioSettings(); var audio = new Audio(audioSettings, new ModuleLogger(logger, nameof(Audio))); audio.Initialize(); taskbar.AddSystemControl(uiFactory.CreateAudioControl(audio, Location.Taskbar)); var keyboard = new Keyboard(new ModuleLogger(logger, nameof(Keyboard))); keyboard.Initialize(); taskbar.AddSystemControl(uiFactory.CreateKeyboardLayoutControl(keyboard, Location.Taskbar)); var powerSupply = new PowerSupply(new ModuleLogger(logger, nameof(PowerSupply))); powerSupply.Initialize(); taskbar.AddSystemControl(uiFactory.CreatePowerSupplyControl(powerSupply, Location.Taskbar)); var wirelessAdapter = new WirelessAdapter(new ModuleLogger(logger, nameof(WirelessAdapter))); wirelessAdapter.Initialize(); taskbar.AddSystemControl(uiFactory.CreateWirelessNetworkControl(wirelessAdapter, Location.Taskbar)); browser = new BrowserApplication(appSettings, messageBox, true, new ModuleLogger(logger, nameof(BrowserApplication)), text); taskbar.AddApplicationControl(uiFactory.CreateApplicationControl(browser, Location.Taskbar), true); browser.TerminationRequested += () => { Browser_TerminationRequested(); }; taskview.Add(browser); InitializeCef(); foreach (string startUrl in appSettings.StartUrls) { browser.CreateNewInstance(startUrl); } }