Esempio n. 1
0
 public static void Main(String[] args)
 {
     Debug.Listeners.Add(new TextWriterTraceListener(Console.Out));
     Debug.WriteLine("Main() {");
     Debug.Indent();
     try {
         var cfg = new Config();
         var ext = new Extractor();
         var stp = new Setuper(cfg);
         var exp = new Exporter(cfg);
         stp.ImportText();
         stp.SetFeaturedItems();
         stp.SetFeaturedEquips();
         stp.SetFeaturedRecipes();
         stp.SetCharacters();
         stp.SetClassification();
         stp.SetIcons();
         stp.SetMats();
         stp.SetQualityTypes();
         stp.SetEnhanceTypes();
         stp.SetEquips();
         stp.SetEquipParts();
         stp.SetBaseEquips();
         stp.SetSets();
         stp.SetEnchants();
         stp.SetScreenshots();
         var ssr = new Screenshoter(cfg);
         ssr.Screenshot();
         exp.ExportIcons();
         exp.ExportClassification();
         exp.ExportCharacters();
         exp.ExportMats();
         exp.ExportQualityTypes();
         exp.ExportEnhanceTypes();
         exp.ExportEnchants();
         exp.ExportScreenshots();
         exp.ExportEquips();
         exp.ExportEquipParts();
         exp.ExportSets();
         exp.ExportSitemap();
         //MissingMaterials(cfg);
         //Color(cfg);
     }
     catch (Exception exception) {
         Debug.WriteLine(exception.Source);
         Debug.WriteLine(exception.Message);
         Debug.WriteLine(exception.StackTrace);
         throw;
     }
     finally {
         Debug.Unindent();
         Debug.WriteLine("}");
         Console.ReadKey(true);
     }
 }