Exemple #1
0
 void SetupPatterns()
 {
     if (feedPatterns == null)
     {
         string patternsFile = meido.DataPathTo("nyaapatterns.xml");
         feedPatterns = new Patterns(TimeSpan.FromMinutes(1))
         {
             FileLocation = patternsFile
         };
         try
         {
             feedPatterns.Deserialize();
         }
         catch (System.IO.FileNotFoundException)
         {}
     }
 }