Example #1
0
        private static void ReadMenuInput()
        {
            string input = Console.ReadLine();

            switch (input)
            {
            case "1":
                ShowProfile();
                break;

            case "2":
                addSaving();
                break;

            case "3":
                RemaningSalary();
                break;

            case "4":
                SavingsListing();
                break;

            case "5":
                going = false;
                FileOutSaver.SaveOut(_allSaving);
                break;

            default:
                break;
            }
        }
Example #2
0
 public static bool ReadFiles()
 {
     if (FileOutSaver.FileExist())
     {
         _allSaving = FileOutSaver.LoadIn();
         return(true);
     }
     else
     {
         return(false);
     }
 }