public bool ExportObjects(out string exportedObjectsPath, out string message) { message = string.Empty; exportedObjectsPath = string.Empty; try { ClearFiles(); string command = CreateCommand(); ProcessStartInfo startInfo = new ProcessStartInfo(this.FinsqlPath, command) { UseShellExecute = true, CreateNoWindow = true }; Process proc = new Process() { StartInfo = startInfo }; proc.StartInfo = startInfo; proc.Start(); proc.WaitForExit(); LogStatus logStatus = GetLogStatus(); CheckStatus(logStatus, out message); if (logStatus.ResultStatus == ResultStatus.OK) { exportedObjectsPath = ExportFileFullPath(); } return(logStatus.ResultStatus == ResultStatus.OK); } catch (Exception ex) { OnExportError?.Invoke(this, new ExportErrorEventArgs(ex)); } return(false); }
private void FileHandeling_OnExportError(object source, ExportErrorEventArgs e) { OnExportError?.Invoke(source, e); }