예제 #1
0
 private static void HandleEvent(WarnEvent warnEvent, ISession session)
 {
     Logger.Write(warnEvent.ToString(), LogLevel.Warning);
     // If the event requires no input return.
     if (!warnEvent.RequireInput) return;
     // Otherwise require input.
     Logger.Write(session.Translation.GetTranslation(TranslationString.RequireInputText));
     Console.ReadKey();
 }
예제 #2
0
        public void HandleEvent(WarnEvent evt, ISession session)
        {
            Logger.Write(evt.ToString(), LogLevel.Warning);

            if (evt.RequireInput)
            {
                Logger.Write(session.Translation.GetTranslation(TranslationString.RequireInputText));
                Console.ReadKey();
            }
        }
예제 #3
0
 public void HandleEvent(WarnEvent evt, ISession session)
 {
 }
예제 #4
0
 public void HandleEvent(WarnEvent evt, Context ctx)
 {
 }
예제 #5
0
 public void HandleEvent(WarnEvent evt, Context ctx)
 {
     Logger.Write(evt.ToString(), LogLevel.Warning);
 }
예제 #6
0
 public void HandleEvent(WarnEvent evt, Session session)
 {
     Logger.Write(evt.ToString(), LogLevel.Warning);
 }