Example #1
0
        private List <string> RomanNumber(Treatment treatment)
        {
            Number roman = new Roman("Roman");

            try
            {
                roman.Translate(treatment);
            }
            catch (InvalidNumber ex)
            {
                return(new List <string> {
                    "Error", ex.Message
                });
            }
            List <string> list = roman.GetResults();

            if (list.Count > 0)
            {
                list.Insert(0, "5");
            }
            return(list);
        }