diff --git a/SafeExamBrowser.Core/Behaviour/StartupController.cs b/SafeExamBrowser.Core/Behaviour/StartupController.cs index f25bfaab..86d40035 100644 --- a/SafeExamBrowser.Core/Behaviour/StartupController.cs +++ b/SafeExamBrowser.Core/Behaviour/StartupController.cs @@ -171,16 +171,35 @@ namespace SafeExamBrowser.Core.Behaviour private void InitializeBrowser() { - var browserButton = uiFactory.CreateApplicationButton(browserInfo); - logger.Info("Initializing browser."); splashScreen.UpdateText(Key.SplashScreen_InitializeBrowser); + var browserButton = uiFactory.CreateApplicationButton(browserInfo); + browserController.RegisterApplicationButton(browserButton); // TODO taskbar.AddButton(browserButton); + taskbar.AddButton(uiFactory.CreateApplicationButton(browserInfo)); + taskbar.AddButton(uiFactory.CreateApplicationButton(browserInfo)); + taskbar.AddButton(uiFactory.CreateApplicationButton(browserInfo)); + taskbar.AddButton(uiFactory.CreateApplicationButton(browserInfo)); + taskbar.AddButton(uiFactory.CreateApplicationButton(browserInfo)); + taskbar.AddButton(uiFactory.CreateApplicationButton(browserInfo)); + taskbar.AddButton(uiFactory.CreateApplicationButton(browserInfo)); + taskbar.AddButton(uiFactory.CreateApplicationButton(browserInfo)); + taskbar.AddButton(uiFactory.CreateApplicationButton(browserInfo)); + taskbar.AddButton(uiFactory.CreateApplicationButton(browserInfo)); + taskbar.AddButton(uiFactory.CreateApplicationButton(browserInfo)); + taskbar.AddButton(uiFactory.CreateApplicationButton(browserInfo)); + taskbar.AddButton(uiFactory.CreateApplicationButton(browserInfo)); + taskbar.AddButton(uiFactory.CreateApplicationButton(browserInfo)); + taskbar.AddButton(uiFactory.CreateApplicationButton(browserInfo)); + taskbar.AddButton(uiFactory.CreateApplicationButton(browserInfo)); + taskbar.AddButton(uiFactory.CreateApplicationButton(browserInfo)); + taskbar.AddButton(uiFactory.CreateApplicationButton(browserInfo)); + taskbar.SetPosition(500, 500); } private void FinishInitialization() diff --git a/SafeExamBrowser.UserInterface/Controls/ApplicationButton.xaml b/SafeExamBrowser.UserInterface/Controls/ApplicationButton.xaml index 57c6041d..f028afc1 100644 --- a/SafeExamBrowser.UserInterface/Controls/ApplicationButton.xaml +++ b/SafeExamBrowser.UserInterface/Controls/ApplicationButton.xaml @@ -4,15 +4,20 @@ xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:local="clr-namespace:SafeExamBrowser.UserInterface.Controls" + xmlns:s="clr-namespace:System;assembly=mscorlib" mc:Ignorable="d" d:DesignHeight="40" d:DesignWidth="50"> - - + + - - + + + 5 + + +