Exemple #1
0
    public static void Main(String[] argv)
    {
        int port = 0;

        switch (argv.Length)
        {
        case 1:
            port = int.Parse(argv[0], null);
            if (port == 0)
            {
                goto default;
            }
            break;

        case 0:
            port = 3333;
            break;

        default:
            Console.WriteLine("usage: mono TuioDemo [port]");
            System.Environment.Exit(0);
            break;
        }

        TuioDemo app = new TuioDemo(port);

        Application.Run(app);
    }
Exemple #2
0
    public static void Main(String[] argv)
    {
        int port = 0;
            switch (argv.Length) {
                case 1:
                    port = int.Parse(argv[0],null);
                    if(port==0) goto default;
                    break;
                case 0:
                    port = 3333;
                    break;
                default:
                    Console.WriteLine("usage: java TuioDemo [port]");
                    System.Environment.Exit(0);
                    break;
            }

            TuioDemo app = new TuioDemo(port);
            Application.Run(app);
    }