Added a IsBeingDeleted flag to the event arguments for closing a Word Document
Added a IsBeingDeleted argument to the CloseWordItem method Added a IsBeingDeleted Property to the DSOTabPanel so that it does not ask if it should save changes if the section is being deleted.
This commit is contained in:
@@ -404,6 +404,10 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
}
|
||||
public void CloseWordItem(ItemInfo myItemInfo)
|
||||
{
|
||||
CloseWordItem(myItemInfo, false);
|
||||
}
|
||||
public void CloseWordItem(ItemInfo myItemInfo, bool isBeingDeleted)
|
||||
{
|
||||
CleanUpClosedItems();
|
||||
string key = "Doc - " + myItemInfo.MyContent.MyEntry.MyDocument.DocID.ToString();
|
||||
@@ -413,6 +417,7 @@ namespace Volian.Controls.Library
|
||||
myTabItem = _MyDisplayTabItems[key];
|
||||
if (myTabItem.MyDSOTabPanel != null)
|
||||
{
|
||||
myTabItem.MyDSOTabPanel.IsBeingDeleted = isBeingDeleted;
|
||||
CloseTabItem(myTabItem);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user