public void AddRange(IEnumerable <CACmdLineMessage> aMessages, CACmdLineMessage.TType aOnlyOfType)
 {
     foreach (CACmdLineMessage msg in aMessages)
     {
         if (msg.Type == aOnlyOfType)
         {
             Add(msg);
         }
     }
 }
        private int CountByType(CACmdLineMessage.TType aType)
        {
            int count = 0;

            //
            iMessages.ForEach(delegate(CACmdLineMessage aMessage)
            {
                if (aMessage.Type == CACmdLineMessage.TType.ETypeError)
                {
                    ++count;
                }
            }
                              );
            //
            return(count);
        }
        private void Add(string aTitle, string aDescription, CACmdLineMessage.TType aType)
        {
            CACmdLineMessage msg = new CACmdLineMessage(aType, aTitle, aDescription);

            Add(msg);
        }