private void scTopLeftRightPanel2_SizeChanged(object sender, EventArgs e)
{
int width = scTopLeftRight.Panel2.Width;
int maxWidth = 427;
if (devTabsForm != null)
maxWidth = devTabsForm.GetTcDeviceTabsWidth() + 15;
int split = Width - maxWidth - 10;
if (width > maxWidth && split > 1)
scTopLeftRight.SplitterDistance = split;
scTopLeftRight.Update();
if (devTabsForm != null)
devTabsForm.DeviceTabsUpdate();
}