Example #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;
            }
        }
Example #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;
         }
     }
 }
Example #3
0
 public PropertyNode(NDOTreeNode parent, Property prop) : base(prop.Name, prop)
 {
     this.parent             = parent;
     this.SelectedImageIndex = 14;
     this.ImageIndex         = 14;
 }
Example #4
0
 public ColumnNode(NDOTreeNode parent, Column column) : base(column.Name, column)
 {
     this.parent             = parent;
     this.SelectedImageIndex = 8;
     this.ImageIndex         = 8;
 }