예제 #1
0
파일: EnumCheck.cs 프로젝트: raj581/Marvin
        public static void Main(string[] args)
        {
            if (args.Length > 0 && (args[0] == "--help" || args[0] == "-h"))
            {
                PrintUsage();
                return;
            }
            EnumCheck check = null;
            string    bdir;

            System.Console.Write("Enter assembly configuration file [{0}]:", confFile);
            //System.Console.Write("[{0}]: ", confFile);
            bdir = System.Console.ReadLine();
            while (bdir.EndsWith("/") || bdir.EndsWith("\\"))
            {
                bdir = bdir.Substring(0, bdir.Length - 1);
            }
            if (bdir != "")
            {
                confFile = bdir;
            }
            if (args.Length != 0)
            {
                foreach (string clName in args)
                {
                    check = new EnumCheck(clName);
                    check.Display();
                    System.Console.WriteLine("\n");
                }
            }
            while (true)
            {
                System.Console.Write("Enter the name of the Enumeration (end to stop): ");
                string clName = System.Console.ReadLine();
                if (clName == "stop" || clName == "end" || clName.Length == 0)
                {
                    break;
                }
                check = new EnumCheck(clName);
                check.Display();
                System.Console.WriteLine("\n");
            }
        }
예제 #2
0
파일: EnumCheck.cs 프로젝트: nobled/mono
		public static void Main(string[] args)
		{
			if(args.Length > 0 && (args[0] == "--help" || args[0] == "-h"))
			{
				PrintUsage();
				return;
			}
			EnumCheck check = null;
			string bdir;
			System.Console.Write("Enter assembly configuration file [{0}]:", confFile);
			//System.Console.Write("[{0}]: ", confFile);
			bdir = System.Console.ReadLine();
			while(bdir.EndsWith("/") || bdir.EndsWith("\\"))
			{
				bdir = bdir.Substring(0, bdir.Length - 1);
			}
			if(bdir != "")
			{
				confFile = bdir;
			}
			if(args.Length != 0)
			{
				foreach(string clName in args)
				{
					check = new EnumCheck(clName);
					check.Display();
					System.Console.WriteLine("\n");
				}
			}
			while(true)
			{
				System.Console.Write("Enter the name of the Enumeration (end to stop): ");
				string clName = System.Console.ReadLine();
				if(clName == "stop" || clName == "end" || clName.Length == 0)
					break;
				check = new EnumCheck(clName);
				check.Display();
				System.Console.WriteLine("\n");
			}
		}