Beispiel #1
0
        public static CommandArgs Parse(params string[] args)
        {
            try
            {
                if (args.Length > 0)
                {
                    var excelPath       = args[0];
                    var resourceDicPath = args[1];

                    var obj = new AppArgs(excelPath, resourceDicPath);

                    return(obj);
                }
                else
                {
                    return(null);
                }
            }
            catch (Exception)
            {
                return(null);
            }
        }
Beispiel #2
0
        public static CommandArgs Parse(string excelPath, string resourceDicPath)
        {
            var obj = new AppArgs(excelPath, resourceDicPath);

            return(obj);
        }