private static void RunApplication(Container container) { try { var windowAttacher = container.GetInstance <IWindowAttacher>(); var notifier = container.GetInstance <INotifier>(); var screenHelper = container.GetInstance <IScreenHelper>(); var app = new MyApp(windowAttacher, notifier, screenHelper, container); app.Run(); } catch (Exception ex) { //Log the exception and exit } }
private void exitMenu_Click(object sender, RoutedEventArgs e) { MyApp.exit(); }