Inheritance: System.Windows.Forms.Form
Esempio n. 1
0
        public static int Execute(List <string> args)
        {
            if (args.Count < 2)
            {
                Console.WriteLine("Usage: credits.dat STRING_DIC.SO");
                return(-1);
            }

            Console.WriteLine("Opening STRING_DIC.SO...");
            TSSFile TSS;

            try {
                TSS = new TSSFile(System.IO.File.ReadAllBytes(args[1]));
            } catch (System.IO.FileNotFoundException) {
                Console.WriteLine("Could not open STRING_DIC.SO, exiting.");
                return(-1);
            }

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            CreditsForm itemForm = new CreditsForm(args[0], TSS);

            Application.Run(itemForm);
            return(0);
        }
        public static int Execute( List<string> args )
        {
            if ( args.Count < 2 ) {
                Console.WriteLine( "Usage: credits.dat STRING_DIC.SO" );
                return -1;
            }

            Console.WriteLine( "Opening STRING_DIC.SO..." );
            TSSFile TSS;
            try {
                TSS = new TSSFile( System.IO.File.ReadAllBytes( args[1] ) );
            } catch ( System.IO.FileNotFoundException ) {
                Console.WriteLine( "Could not open STRING_DIC.SO, exiting." );
                return -1;
            }

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault( false );
            CreditsForm itemForm = new CreditsForm( args[0], TSS );
            Application.Run( itemForm );
            return 0;
        }