예제 #1
0
        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)
                    {
                    }
                }
            }
        }