Esempio n. 1
0
        public static void UpdateFileData(StorageFile FileStorageList, EscanerDataContext Data)
        {
            // populate list with the names of the files that are scanned

            Data.AddToFileList(FileStorageList);
        }
Esempio n. 2
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, EscanerDataContext Data)
 {
     DisplayExceptionErrorMessage(e);
     Data.ScenarioRunning = false;
 }
Esempio n. 3
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, EscanerDataContext Data)
 {
     // populate list with the names of the files that are scanned
     for (int i = 0; i < FileStorageList.Count; i++)
     {
         Data.AddToFileList(FileStorageList[i]);
     }
 }