123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- using CommonUI.Data;
- using System;
- using System.IO;
- using System.Text;
- namespace CommonUI_Win32
- {
- static class Program
- {
- static void Main(string[] args)
- {
- if (args.Length > 0)
- {
- switch (args[0])
- {
- case "xml2bin":
- ConvertXml2Bin(args);
- return;
- }
- }
- Console.WriteLine(Usage);
- }
-
- private static void ConvertXml2Bin(string[] args)
- {
- string root = ".";
- if (args.Length > 1 && Directory.Exists(args[1]))
- {
- root = args[1];
- }
- new UIEditorConverter().ConvertXML(new DirectoryInfo(root));
- }
- public static string Usage
- {
- get
- {
- StringBuilder sb = new StringBuilder("UI工具集");
- sb.AppendLine("1. UI编辑器Xml转换Bin");
- sb.AppendLine(" CommonUI_Win32.exe xml2bin <输入文件夹>");
- return sb.ToString();
- }
- }
- }
- }
|