Don't give DSOFramer focus if it is null

This commit is contained in:
Rich 2010-12-14 11:53:00 +00:00
parent db051f8ff8
commit 3a6be9a4f5

View File

@ -10,7 +10,6 @@ using Volian.Controls.Library;
using System.Reflection;
using LBWordLibrary;
namespace Volian.Controls.Library
{
public partial class DSOTabPanel : DevComponents.DotNetBar.PanelDockContainer
@ -98,13 +97,12 @@ namespace Volian.Controls.Library
//_frm = new frmPG(_MyDSOFramer);
//_frm.Show();
}
void _RefreshTimer_Tick(object sender, EventArgs e)
{
_RefreshTimer.Enabled = false;
_MyDSOFramer.Focus();
if(_MyDSOFramer != null)
_MyDSOFramer.Focus();
}
void DSOTabPanel_ClientSizeChanged(object sender, EventArgs e)
{
_RefreshTimer.Enabled = false; // This assures that interval is used from last event.