/// <summary>
        /// Loads Voucher page2 with the files dropped
        /// </summary>
        /// <param name="filePaths"></param>
        public void LoadPageOnFileDrop(string[] filePaths)
        {
            browseControl.Visibility = Visibility.Collapsed;
            try
            {
                List <string> failedFiles = null;
                var           fileInfos   = UtilDisplay.CreateSelectedFileInfo(filePaths, out failedFiles);
                if (failedFiles != null && failedFiles.Count > 0)
                {
                    var cwErrorBox = new CWErrorBox(failedFiles.ToArray(), true);
                    cwErrorBox.Show();
                }

                txedVoucherComments.Text        = fileInfos.Length > 1 ? string.Empty : fileInfos.SingleOrDefault()?.FileName;
                browseControl.SelectedFileInfos = fileInfos.Length > 0 ? fileInfos : null;
            }
            catch (Exception ex)
            {
                UnicontaMessageBox.Show(string.Format(Uniconta.ClientTools.Localization.lookup("FileError"), ex.Message), Uniconta.ClientTools.Localization.lookup("Exception"));
            }
        }
 /// <summary>
 /// Load files when outlook mail dropped
 /// </summary>
 /// <param name="dataObject">Dropped data object</param>
 public void LoadPageOnOutlookMailDrop(IDataObject dataObject)
 {
     try
     {
         browseControl.Visibility = Visibility.Collapsed;
         string error;
         var    selectedFileInfo = UtilDisplay.CreateSelectedFileInfo(dataObject, out error);
         if (string.IsNullOrEmpty(error) && selectedFileInfo != null)
         {
             txedVoucherComments.Text        = selectedFileInfo.FileName;
             browseControl.SelectedFileInfos = new SelectedFileInfo[] { selectedFileInfo };
         }
         else
         {
             UnicontaMessageBox.Show(error, Uniconta.ClientTools.Localization.lookup("Error"));
         }
     }
     catch (Exception ex)
     {
         UnicontaMessageBox.Show(string.Format(Uniconta.ClientTools.Localization.lookup("FileError"), ex.Message), Uniconta.ClientTools.Localization.lookup("Exception"));
     }
 }