/// <summary> /// Raises the <see cref="E:System.Windows.Application.Startup"/> event. /// </summary> /// <param name="e">A <see cref="T:System.Windows.StartupEventArgs"/> that contains the event data.</param> protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); IMessengerService service = new SimulationMessengerService(); var window = new MessengerWindow(service); MainWindow = window; window.Show(); }