OpenTextEditor() public method

public OpenTextEditor ( IScriptableNode target ) : GoodAI.BrainSimulator.Forms.TextEditForm
target IScriptableNode
return GoodAI.BrainSimulator.Forms.TextEditForm
        private void Desktop_DoubleClick(object sender, EventArgs e)
        {
            MyNodeView nodeView = Desktop.FocusElement as MyNodeView;

            if (nodeView != null)
            {
                MyNodeGroup     group      = nodeView.Node as MyNodeGroup;
                IScriptableNode scriptable = nodeView.Node as IScriptableNode;

                if (scriptable != null && group == null ||
                    scriptable != null && group != null && (Control.ModifierKeys & Keys.Shift) != 0)
                {
                    m_mainForm.OpenTextEditor(scriptable);
                }
                else if (group != null)
                {
                    m_mainForm.OpenGraphLayout(group);
                }
            }
        }