Пример #1
0
        //---------------------------------------------------------------------
        // Main()
        //---------------------------------------------------------------------
        static int Main(string[] args)
        {
            clsDebugTextbox.bConsole = true;

            // Create object
            clsds30LConsole objds30LConsole = new clsds30LConsole();

            //
            bool bResult = false;

            objds30LConsole.DoMagic(args, ref bResult);

            // Make sure the user can read the output
            DisplayPressAnyKey();

            // Check result
            if (bResult == false)
            {
                System.Environment.ExitCode = -1;
                return(-1);
            }
            else
            {
                System.Environment.ExitCode = 0;
                return(0);
            }
        }// Main()
        //---------------------------------------------------------------------
        // Main()
        //---------------------------------------------------------------------
        static int Main(string[] args)
        {
            clsDebugTextbox.bConsole = true;

            // Create object
            clsds30LConsole objds30LConsole = new clsds30LConsole();

            //
            bool bResult = false;
            objds30LConsole.DoMagic( args, ref bResult );

            // Make sure the user can read the output
            DisplayPressAnyKey();
            
            // Check result
            if ( bResult == false ) {
                System.Environment.ExitCode = -1;
                return -1;
            } else {
                System.Environment.ExitCode = 0;
                return 0;
            }
        }// Main()