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