Esempio n. 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();
 }
Esempio n. 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();
            }
        }
Esempio n. 3
0
 public void HandleEvent(WarnEvent evt, ISession session)
 {
 }
Esempio n. 4
0
 public void HandleEvent(WarnEvent evt, Context ctx)
 {
 }
 public void HandleEvent(WarnEvent evt, Context ctx)
 {
     Logger.Write(evt.ToString(), LogLevel.Warning);
 }
Esempio n. 6
0
 public void HandleEvent(WarnEvent evt, Session session)
 {
     Logger.Write(evt.ToString(), LogLevel.Warning);
 }