Пример #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);
 }