private static void _pc_ParsingStoppedEvent(object sender, ParsingStoppedEventArgs e) { if (!e.CanceledByScriptEnd) { ParserCore.SendError(ParserCore.Locale.StateStoppedWithErr); } Console.ReadKey(); }
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 } }