private void Window_Loaded(object sender, RoutedEventArgs e) { try { _ControlSystem = new ControlSystem(Log); } catch (System.Exception ex) { Log.Content += ex.GetType().Name + "\n" + ex.Message + "\n" + ex.StackTrace + "\n"; } }