Ejemplo n.º 1
0
        private void allObjects_AfterSelect(object sender, System.Windows.Forms.TreeViewEventArgs e)
        {
            NDOTreeNode tn = e.Node as NDOTreeNode;

            if (tn != null)
            {
                this.propertyGrid1.SelectedObject = tn.Object;
            }
            else
            {
                this.propertyGrid1.SelectedObject = null;
            }
        }
Ejemplo n.º 2
0
 private void allObjects_MouseUp(object sender, System.Windows.Forms.MouseEventArgs e)
 {
     if (e.Button == MouseButtons.Right)
     {
         NDOTreeNode tn = this.allObjects.GetNodeAt(e.X, e.Y) as NDOTreeNode;
         if (tn != null)
         {
             allObjects.SelectedNode = tn;
             ContextMenu menu = tn.GetContextMenu();
             if (menu.MenuItems.Count > 0)
             {
                 menu.Show(allObjects, new Point(e.X, e.Y));
             }
             this.propertyGrid1.SelectedObject = tn.Object;
         }
     }
 }
Ejemplo n.º 3
0
 public PropertyNode(NDOTreeNode parent, Property prop) : base(prop.Name, prop)
 {
     this.parent             = parent;
     this.SelectedImageIndex = 14;
     this.ImageIndex         = 14;
 }
Ejemplo n.º 4
0
 public ColumnNode(NDOTreeNode parent, Column column) : base(column.Name, column)
 {
     this.parent             = parent;
     this.SelectedImageIndex = 8;
     this.ImageIndex         = 8;
 }