Fixed ItemSelected so that Comment works properly.

Added code back in so that Word displays properly.
Allow the same document to be opened after Word hang
This commit is contained in:
Rich
2008-02-08 10:31:30 +00:00
parent 52a735e08c
commit 3c79833edf
5 changed files with 87 additions and 22 deletions

View File

@@ -30,6 +30,7 @@ namespace Volian.Controls.Library
get { return _TabItem; }
set { _TabItem = value; }
}
//private frmPG _frm = null;
public DSOTabPanel(DocumentInfo documentInfo, DisplayTabControl myTabControl)
{
_MyTabControl = myTabControl;
@@ -37,6 +38,8 @@ namespace Volian.Controls.Library
SetupDSOTabPanel();
_MyDocument = documentInfo;
SetupDSO();
//_frm = new frmPG(_MyDSOFramer);
//_frm.Show();
}
private void SetupDSOTabPanel()
{
@@ -98,15 +101,15 @@ namespace Volian.Controls.Library
}
void DSOTabPanel_Enter(object sender, EventArgs e)
{
//try
//{
// _MyDSOFramer.EventsEnabled = true;
// _MyDSOFramer.FrameHookPolicy = DSOFramer.dsoFrameHookPolicy.dsoResetNow;
//}
//catch (Exception ex)
//{
// if (_MyLog.IsErrorEnabled) _MyLog.ErrorFormat("DSOTabPage_Enter", ex);
//}
try
{
_MyDSOFramer.EventsEnabled = true;
_MyDSOFramer.FrameHookPolicy = DSOFramer.dsoFrameHookPolicy.dsoResetNow;
}
catch (Exception ex)
{
if (_MyLog.IsErrorEnabled) _MyLog.ErrorFormat("DSOTabPage_Enter", ex);
}
_MyTabControl.OnItemSelectedChanged(this, null);
_MyDSOFramer.Focus();
}