Beispiel #1
0
        void watchList_DoubleClick(object sender, MouseEventArgs e)
        {
            if (watchList.SelectedNode == null)
            {
                watchList.BeginUpdate();
                TextNode        text = new TextNode("");
                TreeViewVarNode node = new TreeViewVarNode(this.debuggedProcess, this.watchList, text);
                watches.Add(text);
                watchList.Root.Children.Add(node);
                watchList.EndUpdate();

                node.IsSelected = true;

                this.RefreshPad();

                foreach (NodeControlInfo nfo in watchList.GetNodeControls(node))
                {
                    if (nfo.Control is WatchItemName)
                    {
                        ((EditableControl)nfo.Control).MouseUp(new TreeNodeAdvMouseEventArgs(e));
                    }
                }
            }
        }