Пример #1
0
        static void Main()
        {
            Logging.s_mode = Logging.LOG_MODE.FILE_EXE;

            ProgramBase.Start();

            if (RunOneInstance.ChekRunProgramm("trans_mt"))
            {
                return;
            }

            FormMainTransMT formMain = null;

            try { formMain = new FormMainTransMT(); }
            catch (Exception e)
            {
                Logging.Logg().Exception(e, "!Ошибка! запуска приложения.", Logging.INDEX_MESSAGE.NOT_SET);
            }

            if (!(formMain == null))
            {
                Application.Run(formMain);
            }
            else
            {
                ;
            }

            ProgramBase.Exit();
        }
Пример #2
0
        static void Main()
        {
            //Logging.s_mode = Logging.LOG_MODE.UNKNOWN; //Если назначить неизвестный тип логирования - 1-е сообщения б. утеряны
            //Logging.s_mode = Logging.LOG_MODE.DB;
            Logging.s_mode = Logging.LOG_MODE.FILE_EXE;

            if (RunOneInstance.ChekRunProgramm("trans_mc"))
            {
                return;
            }

            ProgramBase.Start();

            FormMainTransMC formMain = null;

            if (formMain == null)
            {
                try { formMain = new FormMainTransMC(); }
                catch (Exception e)
                {
                    Logging.Logg().Exception(e, "Ошибка запуска приложения.", Logging.INDEX_MESSAGE.NOT_SET);
                }
            }

            if (!(formMain == null))
            {
                Application.Run(formMain);
            }

            ProgramBase.Exit();
        }