Пример #1
0
 /// <summary>
 /// Displays an error message when an exception is thrown during the scenario and set ScenarioRunning of the Data context to false
 /// </summary>
 public static void OnScenarioException(Exception e, ModelDataContext Data)
 {
     DisplayExceptionErrorMessage(e);
     Data.ScenarioRunning = false;
 }
Пример #2
0
 /// <summary>
 /// Add the file names of the scanned files to the list of file names that will be displayed to the user
 /// </summary>
 /// <param name="FileStorageList">List of storage files create by the Scan Runtime API for all the scanned images given by the scanner</param>
 /// <param name="Data">ModelDataContext object which contains the current data Context </param>
 public static void UpdateFileListData(IReadOnlyList<StorageFile> FileStorageList, ModelDataContext Data)
 {
     // populate list with the names of the files that are scanned			
     for(int i = 0; i < FileStorageList.Count; i++)
     {	
         Data.AddToFileList(FileStorageList[i]);
     }
 }