Update the Progress Bar as the RO values are refreshed in Word

This commit is contained in:
Rich
2013-02-28 23:36:45 +00:00
parent 4abaceac23
commit f2c8ac8740
4 changed files with 88 additions and 8 deletions

View File

@@ -347,7 +347,7 @@ namespace Volian.Controls.Library
DialogResult ans = MessageBox.Show("Save as Library Document for all usages?", "Document Save", MessageBoxButtons.YesNo);
if (ans == DialogResult.No) cvtLibDoc = true;
}
MyDSOFile.SaveFile(doc.Length,doc.Ascii,MyDisplayTabItem.MyItemInfo, cvtLibDoc);
MyDSOFile.SaveFile(doc.Length, doc.Ascii, MyDisplayTabItem.MyItemInfo, cvtLibDoc, StatusChanged);
if (cvtLibDoc)
{
MyDisplayTabItem.Text = MyDisplayTabItem.MyItemInfo.TabTitle;
@@ -355,6 +355,11 @@ namespace Volian.Controls.Library
MyDisplayTabItem.SetPrivateTooltip(MyDisplayTabItem.MyItemInfo.TabToolTip);
}
}
public void StatusChanged(VolianStatusType type, int count, string text)
{
DisplayTabControl tc = Parent.Parent.Parent as DisplayTabControl;
tc.ONStatusChanged(this, new DisplayTabControlStatusEventArgs(type, count, text));
}
/// <summary>
/// Before a document closes check to see if it's contents should be saved.
/// </summary>