private void configApplication() { try { //Create event log and database trace listeners, and log application as started ArgixTrace.ClearListeners(); ArgixTrace.AddListener(new DBTraceListener((LogLevel)App.Config.TraceLevel, App.Mediator, App.USP_TRACE, App.EventLogName)); ArgixTrace.WriteLine(new TraceMessage(App.Version, App.EventLogName, LogLevel.Information, "App Started")); //Create business objects with configuration values App.Mediator.DataStatusUpdate += new DataStatusHandler(OnDataStatusUpdate); this.mLocalTerminal = new EnterpriseTerminal(); this.stbMain.SetTerminalPanel(this.mLocalTerminal.TerminalID.ToString(), this.mLocalTerminal.Description); SortBMCFactory.Mediator = App.Mediator; } catch (ApplicationException ex) { throw ex; } catch (Exception ex) { throw new ApplicationException("Configuration Failure", ex); } }