예제 #1
0
 static void GetPathToFile()
 {
     try
     {
         FileProcessor.TrySetPath(InputUser.CatchUserPathToFile());
     }
     catch (IndexOutOfRangeException)
     {
         StandardMessage.NoFileFound();
     }
 }
예제 #2
0
 static void LoadDataFromFile()
 {
     try
     {
         FileProcessor.LoadData();
     }
     catch (IOException)
     {
         if (!FileProcessor.HasDefaultPath())
         {
             StandardMessage.NoFileFound();
         }
     }
 }