コード例 #1
0
ファイル: Program.cs プロジェクト: craftersmine/litescript
 private static void _pc_ParsingStoppedEvent(object sender, ParsingStoppedEventArgs e)
 {
     if (!e.CanceledByScriptEnd)
     {
         ParserCore.SendError(ParserCore.Locale.StateStoppedWithErr);
     }
     Console.ReadKey();
 }
コード例 #2
0
ファイル: ParserCore.cs プロジェクト: craftersmine/litescript
        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

            }
        }