示例#1
0
        private void Save()
        {
            try
            {
                string userFilePath  = _userLogic.SaveUsers();
                string awardFilePath = _awardLogic.SaveAwards();

                Console.WriteLine("{0}Changes saved in folder {1} : {2} и {3}!",
                                  Environment.NewLine, Path.GetDirectoryName(userFilePath), Path.GetFileName(userFilePath), Path.GetFileName(awardFilePath));
            }
            catch (Exception e)
            {
                Console.WriteLine("{0}Failed to save data to file!!{0}{1}{0}{2}",
                                  Environment.NewLine, e.Message, e.StackTrace);

                СhooseAction();
            }
        }