Exemple #1
0
        static void Main(string[] args)
        {
// Israel 10/2/2013 - Unimplemented single instance enforcement on behalf of BTGP
//         if (isAppRunningAlready())
//         {
//            XtraMessageBox.Show("OpsManager is already running.");
//            Application.Exit();
//         }
//         else
//         {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            // Skin registration.
            DevExpress.UserSkins.OfficeSkins.Register();
            DevExpress.UserSkins.BonusSkins.Register();
            //Unhandled exception handler
            AppDomain.CurrentDomain.UnhandledException +=
                new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
            //Mike 1/21/09 - Supports remoting service
            //Israel 6/9/14 - Remove support for remoting service.
            //Type dataManagerType = typeof(DAOManager);
            //RemotingConfiguration.RegisterWellKnownClientType(dataManagerType, Properties.Settings.Default.GSRemotingURL);

            //Israel 12/21/2015 -- Causes all invocations of the XtraMessageBox to automatically wrap to an easily-readable size.
            XtraMessageBox.SmartTextWrap = true;

            splashForm = new frmSplash();
            splashForm.Show();
            splashForm.ShowLoadProgress("Loading application libraries...");
            Thread.Sleep(500);

            Application.Run(new frmMain(args));
//         }
        }
Exemple #2
0
      static void Main(string[] args)
      {
// Israel 10/2/2013 - Unimplemented single instance enforcement on behalf of BTGP
//         if (isAppRunningAlready())
//         {
//            XtraMessageBox.Show("OpsManager is already running.");
//            Application.Exit();
//         }
//         else
//         {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            // Skin registration.
            DevExpress.UserSkins.OfficeSkins.Register();
            DevExpress.UserSkins.BonusSkins.Register();
            //Unhandled exception handler
            AppDomain.CurrentDomain.UnhandledException +=
               new UnhandledExceptionEventHandler(CurrentDomain_UnhandledException);
            //Mike 1/21/09 - Supports remoting service
            //Israel 6/9/14 - Remove support for remoting service.
            //Type dataManagerType = typeof(DAOManager);
            //RemotingConfiguration.RegisterWellKnownClientType(dataManagerType, Properties.Settings.Default.GSRemotingURL);

            //Israel 12/21/2015 -- Causes all invocations of the XtraMessageBox to automatically wrap to an easily-readable size.
            XtraMessageBox.SmartTextWrap = true;

            splashForm = new frmSplash();
            splashForm.Show();
            splashForm.ShowLoadProgress("Loading application libraries...");
            Thread.Sleep(500);

            Application.Run(new frmMain(args));
//         }
      }