Пример #1
0
        internal static void TestDaily()
        {
            using (DailyModule dailyModule = new DailyModule(location.GetLocation(DailyModule.Filename)))
            {
                //dailyModule.Init();
                dailyModule.Config.Settings.ChanceMultiplier = 0;
                Console.WriteLine(dailyModule);

                OutgoingMsgMngr Msgs = new OutgoingMsgMngr();
                Msgs.Add(dailyModule.Generate(commonModule));
                Console.WriteLine(Msgs);
            }
        }
Пример #2
0
 private static void InitDaily()
 {
     try
     {
         dailyModule        = new DailyModule(location.GetLocation(DailyModule.Filename));
         dailyModule.Reset += delegate(object o, EventArgs e)
         {
             outgoingMsgMngr.Clear();
             outgoingMsgMngr.Add(dailyModule.Generate(commonModule));
             outgoingMsgMngr.Save();
             Log.Info("New Generated Daily: " + outgoingMsgMngr);
         };
         Log.Info("dailyModule: " + dailyModule);
     }
     catch (Exception ex)
     {
         Log.Error(ex.ToString());
     }
 }