Esempio n. 1
0
        static void Main()
        {
            try
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);

                _controller = new Controller();
                _controller.InitializeSettings();

                Tools.Instance.Logger.LoggerInitialize();

                Tools.Instance.Logger.LogInfo("MViewer application started");

                _controller.StartApplication();

                Thread.Sleep(Timeout.Infinite);
            }
            catch (Exception ex)
            {
                Tools.Instance.Logger.LogError(ex.ToString());
            }
            finally
            {
                Tools.Instance.Logger.LogInfo("MViewer application stopped");
            }
        }