private void Splitter_Panel2_Click(object sender, EventArgs e)
{
if (m_digitCommand == null)
m_digitCommand = CurrentDigitTool.CurrentTool.currentDigit;
if (m_digitCommand == null)
return;
m_createNode = false;
if (m_curPanel != Splitter.Panel2)
{
m_curPanel = Splitter.Panel2;
foreach (System.Windows.Forms.Control ctrl in Splitter.Panel1.Controls)
ctrl.Enabled = false;
foreach (System.Windows.Forms.Control ctrl in Splitter.Panel2.Controls)
ctrl.Enabled = true;
lblMode.Text = "Create Link";
if (m_schematicFeature1 != null)
{
m_schematicFeature1 = null;
m_digitCommand.SchematicFeature1(m_schematicFeature1);
}
if (m_schematicFeature2 != null)
{
m_schematicFeature2 = null;
m_digitCommand.SchematicFeature2(m_schematicFeature2);
}
if (m_curPanel == Splitter.Panel1)
{
btnOKPanel1.Visible = false;
ErrorProvider1.SetError(btnOKPanel1, "");
}
else
{
btnOKPanel2.Visible = false;
ErrorProvider1.SetError(btnOKPanel2, "");
}
System.EventArgs e2 = new System.EventArgs();
cboLinkType_SelectedIndexChanged(sender, e2);
}
}