Equation Editor interface support
This commit is contained in:
@@ -618,6 +618,12 @@ namespace Volian.Controls.Library
|
||||
if (tn.Tag is ContentAuditInfo)
|
||||
{
|
||||
ContentAuditInfo cai = tn.Tag as ContentAuditInfo;
|
||||
// if original equation is restored, don't allow it because it is empty:
|
||||
if ((cai.Type > 20999 && cai.Type < 21010) && cai.ActionWhat.ToUpper() == "ORIGINAL")
|
||||
{
|
||||
MessageBox.Show(this, "Cannot restore original empty or new equation.", "Warning on restore", MessageBoxButtons.OK);
|
||||
return;
|
||||
}
|
||||
if (MessageBox.Show(this, "Do you want to restore this content change?", "Confirm Content Change Restore", MessageBoxButtons.YesNoCancel, MessageBoxIcon.Question) == DialogResult.Yes)
|
||||
{
|
||||
ROFstInfo myRoFst = MyItemInfo.MyDocVersion.DocVersionAssociations[0].MyROFst;
|
||||
|
Reference in New Issue
Block a user