Пример #1
0
 public void LoadSession()
 {
     try
     {
         using (var reader = new StreamReader(_sessionViewModel.FileName, Encoding.UTF8))
         {
             LoadSession(reader);
         }
         _sessionViewModel.AddRecentlyUsedFile(_sessionViewModel.FileName);
     }
     catch (Exception ex)
     {
         _sessionViewModel.ShowMessageBox(ex.Message, "Error occurred on loading");
     }
 }