Пример #1
0
        static void AddMessageCatalog(List <MessageCatalogFilter> msgCats)
        {
            MessageCatalogFilter filter = new MessageCatalogFilter();

            ModifyMessageCatalog(filter);
            msgCats.Add(filter);
        }
Пример #2
0
        static void ModifyMessageCatalog(MessageCatalogFilter msgCat)
        {
            var newSet = msgCat.Set.ToString();
            var newMin = msgCat.Min.ToString();
            var newMax = msgCat.Max.ToString();

            PromptWithDefault("Please enter the message set:", ref newSet);
            PromptWithDefault("Please enter the minimum message number:", ref newMin);
            PromptWithDefault("Please enter the maximum message number:", ref newMax);

            msgCat.Set = int.Parse(newSet);
            msgCat.Min = int.Parse(newMin);
            msgCat.Max = int.Parse(newMax);
        }