Added Edit/Initialized config to the Documents

Check to see if MSWord changes should be saved if PROMS is closing
This commit is contained in:
Rich
2011-05-09 20:38:01 +00:00
parent 58d3fcc524
commit 0b3693fef8
5 changed files with 26 additions and 3 deletions

View File

@@ -350,6 +350,8 @@ namespace Volian.Controls.Library
{
try
{
if (!IsBeingDeleted)
SaveDirty();
this.Enter -= new EventHandler(DSOTabPanel_Enter);
// this.Leave -= new EventHandler(DSOTabPanel_Leave);
// SaveDirty(); // SaveDirty happens in CloseDSO(bool)
@@ -415,6 +417,7 @@ namespace Volian.Controls.Library
try
{
_MyDSOFramer.Save();
_MyDSOFramer_OnSaveCompleted(this, null);
// These are handled in the method above
//LBDocumentClass doc = new LBDocumentClass(_MyDSOFramer.ActiveDocument);
//MyDSOFile.FullName = GetReflectiveProperty(_MyDSOFramer.ActiveDocument, "FullName");
@@ -476,8 +479,6 @@ namespace Volian.Controls.Library
{
if (_MyDSOFramer != null)
{
if(!IsBeingDeleted)
SaveDirty();
_MyDSOFramer.Close();
Controls.Remove(_MyDSOFramer);
components.Remove(_MyDSOFramer);