public static XPathHandler Instance()
 {
     if (instance == null)
     {
         instance = new XPathHandler();
     }
     return(instance);
 }
Exemple #2
0
        private void textBoxInputXPath_KeyUp(object sender, KeyEventArgs e)
        {
            richTextBoxShowResult.Clear();
            label3.Text = "";

            XPathHandler xpathHandler = XPathHandler.Instance();

            xpathHandler.Path  = openFileDialog1.FileName;
            xpathHandler.XPath = textBoxInputXPath.Text;

            xpathHandler.PrintDataResult += new PrintDataEventHandler(AppendTextBoxShowResult_Handler);
            xpathHandler.PrintDataType   += new PrintDataEventHandler(AppendLabelBox_Handler);
            xpathHandler.PrintDataLog    += new PrintDataEventHandler(AppendLogBox_Handler);

            xpathHandler.CreateThread();
        }