示例#1
0
 private static void _pc_ParsingStoppedEvent(object sender, ParsingStoppedEventArgs e)
 {
     if (!e.CanceledByScriptEnd)
     {
         ParserCore.SendError(ParserCore.Locale.StateStoppedWithErr);
     }
     Console.ReadKey();
 }
示例#2
0
        public void Stop(bool canceledByEnd)
        {
            if (ParsingStoppedEvent != null)
            {
                #region ParsingEventRunning Init

                Console.WriteLine("\r\n" + Locale.StateStopped);
                ParsingStoppedEventArgs _psea = new ParsingStoppedEventArgs();
                _psea.CanceledByScriptEnd = canceledByEnd;
                ParsingStoppedEvent(null, _psea);
                #endregion

            }
        }