Пример #1
0
 /// <summary>
 /// Does the strart up handling for Questionnaires for the QuestionnaireCanceled and QuestionniareFinished delegates
 /// </summary>
 /// <param name="bot"></param>
 public void _doStartUp(PalBot bot)
 {
     if (!DoneStartUp)
     {
         bot.GetManager <QuestionnaireManager>().QuestionnaireCanceled += (i) =>
         {
             if (i == this)
             {
                 OnCancel();
             }
         };
         bot.GetManager <QuestionnaireManager>().QuestionnaireFinished += (i) =>
         {
             if (i == this)
             {
                 OnFinish();
             }
         };
         DoneStartUp = true;
     }
 }
Пример #2
0
 public static Commands CMan(this PalBot bot)
 {
     return(bot.GetManager <Commands>());
 }
Пример #3
0
 public static ForumManager FMan(this PalBot bot)
 {
     return(bot.GetManager <ForumManager>());
 }
Пример #4
0
 public static SimplePluginManager SMan(this PalBot bot)
 {
     return(bot.GetManager <SimplePluginManager>());
 }
Пример #5
0
 public static QuestionnaireManager QMan(this PalBot bot)
 {
     return(bot.GetManager <QuestionnaireManager>());
 }