using System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Threading; using System.Threading.Tasks; using System.Windows.Forms; using Asm.As.Oib.Client; using Asm.As.Oib.Client.Configuration; using com.itac.mes.proxy; using com.itac.oib; namespace oib5._1.GUI { static class Program { /// /// Der Haupteinstiegspunkt für die Anwendung. /// [STAThread] static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); AppDomain.CurrentDomain.UnhandledException += (sender, e) => { if (e.IsTerminating) { object o = e.ExceptionObject; LogHandler.log(Constants.LOGGER, TraceEventType.Critical, "### general exception handling ###"); LogHandler.log(Constants.LOGGER, TraceEventType.Critical, o.ToString()); } }; Application.Run(new Form1()); } /// /// OnStart(): Put startup code here /// - Start threads, get inital data, etc. /// /// /* protected override void OnStart(string[] args) { InitService(); base.OnStart(args); } /// /// OnStop(): Put your stop code here /// - Stop threads, set final data, etc. /// protected override void OnStop() { ShutdownService(); base.OnStop(); } */ /// /// OnShutdown(): Called when the System is shutting down /// - Put code here when you need special handling /// of code that deals with a system shutdown, such /// as saving special data before shutdown. /// /* protected override void OnShutdown() { ShutdownService(); base.OnShutdown(); } */ } }