private void DrawingBoard_MouseDoubleClick(object sender, MouseEventArgs e) { if (e.Button == MouseButtons.Left) { Point mouseLocation = GetVirtualMouseLocation(e); IActivity tmp = CheckWithinImage(mouseLocation); if (tmp != null) { try { GraphContainer.Instance.CloseMaintainVariable(); DialogResult dialogResult = tmp.ShowProperties(); if (dialogResult == DialogResult.OK) { tmp.DoAction(this, this); } } catch (Exception ex) { } } } }