Example #1
0
    public static int Main(string[] args)
    {
        // Check number of args
        if (args.Length != 2)
        {
            Console.WriteLine("USAGE:  WaitAllEx6a /size:<int> /pos:<int>");
            return(-1);
        }

        // Get the args
        int iPos = -1, iSize = -1;;

        for (int i = 0; i < args.Length; i++)
        {
            if (args[i].ToLower().StartsWith("/size:"))
            {
                iSize = Convert.ToInt32(args[i].Substring(6));
                continue;
            }

            if (args[i].ToLower().StartsWith("/pos:"))
            {
                iPos = Convert.ToInt32(args[i].Substring(5));
            }
        }

        WaitAllEx wae = new WaitAllEx();

        return(wae.Run(iSize, iPos));
    }
Example #2
0
    public static int Main(string[] args)
    {
        // Check number of args
        if(args.Length != 2)
        {
            Console.WriteLine("USAGE:  WaitAllEx9a /size:<int> /pos:<int>");
            return -1;
        }

        // Get the args
        int iPos=-1, iSize = -1;;
        
        for(int i=0;i<args.Length;i++)
        {
            if(args[i].ToLower().StartsWith("/size:"))
            {
                iSize = Convert.ToInt32(args[i].Substring(6));
                continue;
            }

            if(args[i].ToLower().StartsWith("/pos:"))
            {
                iPos = Convert.ToInt32(args[i].Substring(5));
            }
        }

        WaitAllEx wae = new WaitAllEx();
        return wae.Run(iSize, iPos);
    }
Example #3
0
 public static int Main()
 {
     WaitAllEx wae = new WaitAllEx();
     wae.Run();
     Console.WriteLine(wae.iRet == 100 ? "Test Passed!" : "Test Failed");
     return wae.iRet;
 }
Example #4
0
    public static int Main()
    {
        WaitAllEx wae = new WaitAllEx();

        wae.Run();
        Console.WriteLine(wae.iRet == 100 ? "Test Passed!" : "Test Failed");
        return(wae.iRet);
    }
Example #5
0
    public static int Main()
    {
        WaitAllEx wae = new WaitAllEx();

        return(wae.Run());
    }
Example #6
0
 public static int Main()
 {
     WaitAllEx wae = new WaitAllEx();
     return wae.Run();
 }