예제 #1
0
        private static int ProcessAction()
        {
            int num = -1;

            if (!string.IsNullOrEmpty(CmdLine.file))
            {
                if (!string.IsNullOrEmpty(CmdLine.region) && !string.IsNullOrEmpty(CmdLine.model) && !string.IsNullOrEmpty(CmdLine.version))
                {
                    num = CmdLine.DoDecrypt();
                }
                else if (!string.IsNullOrEmpty(CmdLine.logicValue) && !string.IsNullOrEmpty(CmdLine.version))
                {
                    num = CmdLine.DoDecrypt();
                }
            }
            else if (!string.IsNullOrEmpty(CmdLine.model) && !string.IsNullOrEmpty(CmdLine.region))
            {
                num = !CmdLine.checkonly ? CmdLine.DoDownload() : CmdLine.DoCheck();
            }
            if (num == -1)
            {
                CmdLine.DisplayUsage();
                num = 1;
            }
            return(num);
        }
예제 #2
0
 public static int Main(string[] args)
 {
     Thread.Sleep(200);
     if (CmdLine.InputValidation(args))
     {
         return(CmdLine.ProcessAction());
     }
     CmdLine.DisplayUsage();
     return(1);
 }