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:
@@ -434,6 +434,12 @@ namespace Volian.Controls.Library
|
||||
}
|
||||
return true;
|
||||
}
|
||||
private bool _IsBeingDeleted = false;
|
||||
public bool IsBeingDeleted
|
||||
{
|
||||
get { return _IsBeingDeleted; }
|
||||
set { _IsBeingDeleted = value; }
|
||||
}
|
||||
/// <summary>
|
||||
/// Cleans-up the DSO Framer window
|
||||
/// </summary>
|
||||
@@ -455,7 +461,8 @@ namespace Volian.Controls.Library
|
||||
{
|
||||
if (_MyDSOFramer != null)
|
||||
{
|
||||
SaveDirty();
|
||||
if(!IsBeingDeleted)
|
||||
SaveDirty();
|
||||
_MyDSOFramer.Close();
|
||||
Controls.Remove(_MyDSOFramer);
|
||||
components.Remove(_MyDSOFramer);
|
||||
|
Reference in New Issue
Block a user