async public Task <ExportResult> ExportObjectsFromFinExe(ServerSetupModel serverSetup, ExportFilterModel exportFilter)
        {
            var result = await Task.Factory.StartNew(() =>
            {
                ExportFinexeHandling fileHandeling = new ExportFinexeHandling()
                {
                    FinsqlPath       = serverSetup.FinExePath,
                    ServerName       = serverSetup.Server,
                    Database         = serverSetup.Database,
                    NTAuthentication = serverSetup.UseNTAuthentication
                };
                fileHandeling.OnExportError += FileHandeling_OnExportError;

                if (!serverSetup.UseNTAuthentication)
                {
                    fileHandeling.Username = serverSetup.UserName;
                    fileHandeling.Password = serverSetup.Password;
                }

                fileHandeling.Filter = ExportFilter.CreateFilterString(exportFilter);

                if (!fileHandeling.ExportObjects(out string exportedObjectsPath, out string message))
                {
                    return(new ExportResult {
                        Success = false, ExportedObjectsPath = exportedObjectsPath, Message = message
                    });
                }

                return(new ExportResult {
                    Success = true, ExportedObjectsPath = exportedObjectsPath, Message = message
                });
            });

            return(result);
        }
 private void CreateFilter()
 {
     CustomFilter = ExportFilter.CreateFilterString(
         Modified,
         DateFrom,
         DateTo,
         VersionList,
         UseCustomFilter,
         CustomFilter);
 }