예제 #1
0
        internal static void ShowResultAddOrEdit(ItemCatalog item)
        {
            Console.Clear();

            if (!item.IsCorrectCreating())
            {
                Console.WriteLine(Titles.ListError);
                foreach (var error in item.ErrorList)
                {
                    Console.WriteLine(error);
                }

                Console.WriteLine();
            }

            Console.WriteLine(Titles.ResultAddorEdit);
            Screen.ShowText(item.ToString(), Titles.PressAnyKey);
        }