Пример #1
0
        private static void Main(string[] args)
        {
            Application.EnableVisualStyles();

            #if WINDOWS
            if (IsRunningMono())
            {
                MessageBox.Show(Lang.Get["ErrorLaunchMonoOnWindowsBuild"], Lang.Get["ErrorLaunchTitle"], MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            #endif

            ProgramArguments programArgs = new ProgramArguments(args, ProgramConfiguration.Validate);

            if (programArgs.HasError)
            {
                MessageBox.Show(programArgs.Error, Lang.Get["ErrorInvalidArgsTitle"], MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            Config = new ProgramConfiguration(programArgs);
            Start();

            IOUtils.CleanupTemporaryDirectory();
        }
Пример #2
0
        private static void Main(string[] args)
        {
            Application.EnableVisualStyles();

            #if WINDOWS
            if (IsRunningMono()){
                MessageBox.Show(Lang.Get["ErrorLaunchMonoOnWindowsBuild"], Lang.Get["ErrorLaunchTitle"], MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            #endif

            ProgramArguments programArgs = new ProgramArguments(args, ProgramConfiguration.Validate);

            if (programArgs.HasError){
                MessageBox.Show(programArgs.Error, Lang.Get["ErrorInvalidArgsTitle"], MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }

            Config = new ProgramConfiguration(programArgs);
            Start();

            IOUtils.CleanupTemporaryDirectory();
        }