This commit is contained in:
@@ -163,6 +163,7 @@ namespace AyaNova.PlugIn.V8
|
||||
/// </summary>
|
||||
private async void DoExport()
|
||||
{
|
||||
Cursor.Current = Cursors.WaitCursor;
|
||||
//Show progress form
|
||||
ProgressForm progress = new ProgressForm();
|
||||
progress.Show();
|
||||
@@ -242,13 +243,15 @@ namespace AyaNova.PlugIn.V8
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
progress.Append("ERROR, During operation: " + progress.LastOp + "\n"+progress.LastSubOp);
|
||||
progress.Append("ERROR, During operation: " + progress.LastOp + "\n" + progress.LastSubOp);
|
||||
progress.Append("\n************\nExport failed with error:");
|
||||
progress.Append(ex.Message);
|
||||
progress.Append("stack:\n" + ex.StackTrace);
|
||||
}
|
||||
finally {
|
||||
progress.FinishedImport();
|
||||
finally
|
||||
{
|
||||
progress.FinishedImport();
|
||||
Cursor.Current = Cursors.Default;
|
||||
}
|
||||
|
||||
|
||||
@@ -389,7 +392,7 @@ namespace AyaNova.PlugIn.V8
|
||||
}
|
||||
|
||||
//Attachments / FILES
|
||||
await ExportAttachments(new TypeAndID(RootObjectTypes.User, c.ID),progress);
|
||||
await ExportAttachments(new TypeAndID(RootObjectTypes.User, c.ID), progress);
|
||||
|
||||
}
|
||||
|
||||
@@ -651,7 +654,7 @@ namespace AyaNova.PlugIn.V8
|
||||
var af = AyaFile.GetItem(i.LT_O_AyaFile.Value);
|
||||
if (af == null) continue;
|
||||
|
||||
progress.SubOp("Wikifile: \"" + af.Name + "\" size:" + af.FileSize);
|
||||
progress.SubOp("Wikifile: \"" + af.Name + "\" " + AyaBizUtils.FileSizeDisplay((decimal)af.FileSize));
|
||||
|
||||
//Compile the FileData property
|
||||
var sDate = i.LT_Common_Label_Created.ToString();
|
||||
@@ -695,6 +698,9 @@ namespace AyaNova.PlugIn.V8
|
||||
var ravenId = a.ObjectResponse["data"][0]["id"].Value<long>();
|
||||
Map.Add(af.ID, ravenId);
|
||||
}
|
||||
|
||||
progress.SubOp("");
|
||||
|
||||
}
|
||||
#endregion attachments
|
||||
|
||||
|
||||
Reference in New Issue
Block a user