Beispiel #1
0
 public CalendarCommand(string ServerName)
     : base(ServerName)
 {
     sCalendarFunctions = new CalendarFunctions(ServerName);
     _regex = new Regex(@"((?<year>[0-9]{4,4})(?:[\.\s]+|))?"                         // Year
                        + @"((?<month>[0-9]{1,2}|[a-zóüöúőűáéí]{3,20})(?:[\.\s]+|))?" // Month
                        + @"((?<day>[0-9]{1,2})(?:[\.\s]+|))?"                        // Day
                        + @"((?<hour>[0-9]{1,2})(?:[:]|))?"                           // Hour
                        + @"(?<minute>[0-9]{1,2})?"                                   // Minute
                        + @"((?:[\s]+)(?<text>(.*)))?", RegexOptions.Compiled | RegexOptions.IgnoreCase);
     _hamregex = new Regex(@"((?<hour>[0-9]{1,2})(?:[:]|))?"                          // Hour
                        + @"(?<minute>[0-9]{1,2})?"                                   // Minute
                        + @"((?:[\s]+)(?<text>(.*)))?", RegexOptions.Compiled | RegexOptions.IgnoreCase);
 }
Beispiel #2
0
 public Calendar(string ServerName)
 {
     _servername        = ServerName;
     sUnban             = new Unban(ServerName);
     sCalendarFunctions = new CalendarFunctions(ServerName);
 }
Beispiel #3
0
 public Calendar(string ServerName)
 {
     _servername = ServerName;
     sUnban = new Unban(ServerName);
     sCalendarFunctions = new CalendarFunctions(ServerName);
 }