Example #1
0
        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
            }
        }
Example #2
0
 private void exitMenu_Click(object sender, RoutedEventArgs e)
 {
     MyApp.exit();
 }