コード例 #1
0
        private static void ListEvents(string command)
        {
            int      pipeIndex   = command.IndexOf('|');
            DateTime date        = GetDate(command, "ListEvents");
            string   countString = command.Substring(pipeIndex + 1);
            int      count       = int.Parse(countString);

            events.ListEvents(date, count);
        }
コード例 #2
0
        private static void ListEvents(string command)
        {
            DateTime dateAndTime = GetDateAndTime(command, ListEventsCommand);

            int    pipeIndex     = command.IndexOf(CommandSeparator);
            string countAsString = command.Substring(pipeIndex + 1);
            int    count         = int.Parse(countAsString);

            events.ListEvents(dateAndTime, count);
        }