예제 #1
0
		public void EditSelectedNode()
		{
			TreeNode node = tree.SelectedNode;
			while (!(node is ElementNode)) {
				if (node == null) {
					return;
				}
				node = node.Parent;
			}
			INode element = ((ElementNode)node).element;
			using (VBEditDialog dlg = new VBEditDialog(element)) {
				dlg.ShowDialog();
			}
			((ElementNode)node).Update();
		}
예제 #2
0
파일: VBAstView.cs 프로젝트: tris2481/ILSpy
        public void EditSelectedNode()
        {
            TreeNode node = tree.SelectedNode;

            while (!(node is ElementNode))
            {
                if (node == null)
                {
                    return;
                }
                node = node.Parent;
            }
            INode element = ((ElementNode)node).element;

            using (VBEditDialog dlg = new VBEditDialog(element)) {
                dlg.ShowDialog();
            }
            ((ElementNode)node).Update();
        }