Esempio n. 1
0
        static void Main(string[] args)
        {
            if (args.Length < 2) {
                Console.WriteLine("Android SMS HTMLifer");
                Console.WriteLine("Usage: android-sms-htmlifier.exe name filename");
                Console.WriteLine();
                return;
            }

            string ownerName = args[0];
            string xmlPath = args[1];
            string htmlPath = Path.ChangeExtension(xmlPath, ".html");

            MessageCollection msgCollection = new MessageCollection();
            Array.ForEach(Sms.FromXmlFile(xmlPath, ownerName), x => msgCollection.Add(x));
            msgCollection.OutputHtml(htmlPath);
        }