private void ctlConcept_MouseDoubleClick(object sender, MouseEventArgs e)
{
// if link mode, insert a rule
if (this.ctlExpressG.Mode == ToolMode.Select)
{
if (this.ctlConcept.Selection != null)
{
using (FormRule form = new FormRule(this.ctlConcept.Selection, this.m_project, this.ctlConcept.Template))
{
DialogResult res = form.ShowDialog(this);
if (res == System.Windows.Forms.DialogResult.OK)
{
this.ctlConcept.Redraw();
}
}
}
}
else if(this.ctlExpressG.Mode == ToolMode.Move)
{
this.ctlProperties.DoInsert(this.ctlExpressG.Mode);
}
else if (this.ctlExpressG.Mode == ToolMode.Link)
{
this.ctlProperties.DoInsert(this.ctlExpressG.Mode);
}
}