Beispiel #1
0
 private void ParseHtml()
 {
     try
     {
         this.HtmlHandler = new HtmlHandler();
     }
     catch (FileNotFoundException)
     {
         Generals.RaiseAlert($"Failed to find '{HtmlHandler.HtmlFileName}' in the directory!!!");
         this.Close();
     }
 }
Beispiel #2
0
 private void LoadXml()
 {
     try
     {
         this.xmlDoc = new XmlDocument();
         this.xmlDoc.Load(XmlFileName);
     }
     catch (FileNotFoundException)
     {
         Generals.RaiseAlert($"Can't find the Xml file!!! ({XmlFileName})");
         Close();
     }
 }