当前位置: 首页>>代码示例>>C#>>正文


C# Tree.TreeViewAdv类代码示例

本文整理汇总了C#中Aga.Controls.Tree.TreeViewAdv的典型用法代码示例。如果您正苦于以下问题:C# TreeViewAdv类的具体用法?C# TreeViewAdv怎么用?C# TreeViewAdv使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


TreeViewAdv类属于Aga.Controls.Tree命名空间,在下文中一共展示了TreeViewAdv类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: TreeViewAdvModel

		//GuiUpdateHelper _updater;

		public TreeViewAdvModel(ProjectVM treeVM, TreeViewAdv treeView)
		{
			_tree = treeVM;
			_treeView = treeView;
			_tree.ChildrenInvalidated += row => AutoRefresh(row, true);
			_tree.RowInvalidated += row => AutoRefresh(row, false);
		}
开发者ID:default0,项目名称:LoycCore,代码行数:9,代码来源:TreeViewAdvModel.cs

示例2: ResizeColumnState

 public ResizeColumnState(TreeViewAdv tree, TreeColumn column, Point p)
     : base(tree)
 {
     _column = column;
     _initLocation = p;
     _initWidth = column.Width;
 }
开发者ID:virl,项目名称:yttrium,代码行数:7,代码来源:ResizeColumnState.cs

示例3: InitializeComponents

		protected override void InitializeComponents()
		{
			localVarList = new TreeViewAdv();
			localVarList.Columns.Add(nameColumn);
			localVarList.Columns.Add(valColumn);
			localVarList.Columns.Add(typeColumn);
			localVarList.UseColumns = true;
			localVarList.SelectionMode = TreeSelectionMode.Single;
			localVarList.LoadOnDemand = true;
			
			NodeIcon iconControl = new ItemIcon();
			iconControl.ParentColumn = nameColumn;
			localVarList.NodeControls.Add(iconControl);
			
			NodeTextBox nameControl = new ItemName();
			nameControl.ParentColumn = nameColumn;
			localVarList.NodeControls.Add(nameControl);
			
			NodeTextBox textControl = new ItemText();
			textControl.ParentColumn = valColumn;
			localVarList.NodeControls.Add(textControl);
			
			NodeTextBox typeControl = new ItemType();
			typeControl.ParentColumn = typeColumn;
			localVarList.NodeControls.Add(typeControl);
			
			localVarList.AutoRowHeight = true;
			
			RedrawContent();
		}
开发者ID:kingjiang,项目名称:SharpDevelopLite,代码行数:30,代码来源:LocalVarPad.cs

示例4: DbMysqlTableIndexColumnsListModel

        /// <summary>
        /// Constructor that initializes the model with the given objects
        /// </summary>
        /// <param name="TreeView">The TreeViewAdv control this model belongs to</param>
        /// <param name="GrtTree">The GRT tree this model belongs to</param>
        public DbMysqlTableIndexColumnsListModel(TreeViewAdv ListView, IndexColumnsListWrapper GrtList,
            MySQLTableColumnsListWrapper TableColumnGrtList,
            NodeCheckBox EnabledNodeControl,
            AdvNodeComboBox NameNodeControl,
            AdvNodeComboBox OrderNodeControl,
            AdvNodeComboBox StorageNodeControl,
            AdvNodeTextBox LengthNodeControl)
            : base(ListView, GrtList, false)
        {
            tableColumnGrtList = TableColumnGrtList;

              enabledNodeControl = EnabledNodeControl;
            nameNodeControl = NameNodeControl;
              orderNodeControl = OrderNodeControl;
              storageNodeControl = StorageNodeControl;
              lengthNodeControl = LengthNodeControl;

            // assign virtual value events for displaying and processing the edited value content
              enabledNodeControl.ValueNeeded += new EventHandler<NodeControlValueEventArgs>(ValueNeeded);
              enabledNodeControl.ValuePushed += new EventHandler<NodeControlValueEventArgs>(ValuePushed);
              nameNodeControl.EditorInitialize += new EditorInitializeEventHandler(EditorInitialize);
            nameNodeControl.ValueNeeded += new EventHandler<NodeControlValueEventArgs>(ValueNeeded);
            nameNodeControl.ValuePushed += new EventHandler<NodeControlValueEventArgs>(ValuePushed);
              orderNodeControl.EditorInitialize += new EditorInitializeEventHandler(EditorInitialize);
              orderNodeControl.ValueNeeded += new EventHandler<NodeControlValueEventArgs>(ValueNeeded);
              orderNodeControl.ValuePushed += new EventHandler<NodeControlValueEventArgs>(ValuePushed);
              storageNodeControl.EditorInitialize += new EditorInitializeEventHandler(EditorInitialize);
            storageNodeControl.ValueNeeded += new EventHandler<NodeControlValueEventArgs>(ValueNeeded);
            storageNodeControl.ValuePushed += new EventHandler<NodeControlValueEventArgs>(ValuePushed);
              lengthNodeControl.EditorInitialize += new EditorInitializeEventHandler(EditorInitialize);
              lengthNodeControl.ValueNeeded += new EventHandler<NodeControlValueEventArgs>(ValueNeeded);
              lengthNodeControl.ValuePushed += new EventHandler<NodeControlValueEventArgs>(ValuePushed);
        }
开发者ID:abibell,项目名称:mysql-workbench,代码行数:38,代码来源:DbMysqlTableIndexColumnsListModel.cs

示例5: AutoHeaderHeightLayout

		public AutoHeaderHeightLayout(TreeViewAdv treeView, int headerHeight)
		{
			_treeView = treeView;
			PreferredHeaderHeight = headerHeight;
			_measureContext = new DrawContext();
			_measureContext.Graphics = Graphics.FromImage(new Bitmap(1, 1));
		}
开发者ID:montague247,项目名称:treeviewadv,代码行数:7,代码来源:AutoHeaderHeightLayout.cs

示例6: ReorderColumnState

		public ReorderColumnState(TreeViewAdv tree, TreeColumn column, Point initialMouseLocation)
			: base(tree, column)
		{
			_location = new Point(initialMouseLocation.X + Tree.OffsetX, 0);
			_dragOffset = tree.GetColumnX(column) - initialMouseLocation.X;
			_ghostImage = column.CreateGhostImage(new Rectangle(0, 0, column.Width, tree.ActualColumnHeaderHeight), tree.Font);
		}
开发者ID:ImaginationSydney,项目名称:flashdevelop,代码行数:7,代码来源:ReorderColumnState.cs

示例7: TreeNodeAdv

 internal TreeNodeAdv(TreeViewAdv tree, object tag)
 {
     _row = -1;
     _tree = tree;
     _nodes = new Collection<TreeNodeAdv>();
     _children = new ReadOnlyCollection<TreeNodeAdv>(_nodes);
     _tag = tag;
 }
开发者ID:Veggie13,项目名称:Genesis,代码行数:8,代码来源:TreeNodeAdv.cs

示例8: AutoRowHeightLayout

		public AutoRowHeightLayout(TreeViewAdv treeView, int rowHeight)
		{
			_rowCache = new List<Rectangle>();
			_treeView = treeView;
			PreferredRowHeight = rowHeight;
			_measureContext = new DrawContext();
			_measureContext.Graphics = Graphics.FromImage(new Bitmap(1, 1));
		}
开发者ID:john-peterson,项目名称:processhacker,代码行数:8,代码来源:AutoRowHeightLayout.cs

示例9: DifferenceByNameGrtTreeModel

 /// <summary>
 /// The constructor that has to be overwritten in the derived model classes
 /// </summary>
 /// <param name="TreeView">The TreeViewAdv control this model is used for</param>
 /// <param name="DisabledNames">the list of the nodes that shouldn't be shown</param>
 /// <param name="GrtList">The GRT list this model is representing</param>
 public DifferenceByNameGrtTreeModel(TreeViewAdv TreeView, List<String> DisabledNames,
     MySQL.Grt.TreeModelWrapper GrtTree, bool DynamicContextMenu)
     : base(TreeView, GrtTree, DynamicContextMenu)
 {
     model = GrtTree;
       treeControl = TreeView;
       disabledNames = DisabledNames;
 }
开发者ID:abibell,项目名称:mysql-workbench,代码行数:14,代码来源:SimpleGrtTreeModel.cs

示例10: SearchForm

        /// <summary>
        /// Конструктор класса окна поиска компьютеров.
        /// </summary>
        /// <param name="treeView">Дерево, в которое добавлять
        /// компьютеры.</param>
        public SearchForm(TreeViewAdv treeView)
        {
            InitializeComponent();

            computerColumn.Text = Properties.Resources.addressColumnTitle;
            statusColumn.Text = Properties.Resources.statusColumnTitle;

            _treeView = treeView;

            computerColumn.Renderer = new ComputerCellRenderer();
        }
开发者ID:virl,项目名称:yttrium,代码行数:16,代码来源:SearchForm.cs

示例11: GrtListModel

        /// <summary>
        /// The constructor that has to be overwritten in the derived model classes
        /// </summary>
        /// <param name="TreeView">The TreeViewAdv control this model is used for</param>
        /// <param name="GrtList">The GRT list this model is representing</param>
        /// <param name="DynamicContextMenu">Use context menu definition provided by backend</param>
        protected GrtListModel(TreeViewAdv tree, MySQL.Grt.ListModelWrapper GrtList, bool DynamicContextMenu)
            : this()
        {
            grtList = GrtList;
            treeView = tree;

              if (DynamicContextMenu)
              {
            tree.ContextMenuStrip = new System.Windows.Forms.ContextMenuStrip();
            tree.ContextMenuStrip.Opening += new System.ComponentModel.CancelEventHandler(ContextMenuStrip_Opening);
              }
        }
开发者ID:abibell,项目名称:mysql-workbench,代码行数:18,代码来源:GrtListModel.cs

示例12: IssueContextMenu

        public IssueContextMenu(JiraIssueListModel model, StatusLabel status, TreeViewAdv tree, ToolStripMenuItem[] items)
        {
            this.model = model;
            this.status = status;
            this.tree = tree;
            this.items = items;

            Items.Add("dummy");

            Opened += issueContextMenuOpened;
            Opening += issueContextMenuOpening;
        }
开发者ID:spncrgr,项目名称:connector-idea,代码行数:12,代码来源:IssueContextMenu.cs

示例13: DbMysqlTableColumnsListModel

        /// <summary>
        /// Constructor that initializes the model with the given objects
        /// </summary>
        /// <param name="TreeView">The TreeViewAdv control this model belongs to</param>
        /// <param name="GrtTree">The GRT tree this model belongs to</param>
        /// <param name="NodeStateIcon">The NodeStateIcon NodeControl that displays the icon</param>
        public DbMysqlTableColumnsListModel(IModelChangeListener listener, TreeViewAdv tree,
            MySQLTableColumnsListWrapper grtList,
            NodeIcon columnIconNodeControl, AdvNodeTextBox nameNodeControl, AdvNodeComboBox datatypeComboBoxNodeControl,
            NodeCheckBox pkNodeControl, NodeCheckBox nnNodeControl, NodeCheckBox uqNodeControl, NodeCheckBox binNodeControl,
            NodeCheckBox unNodeControl, NodeCheckBox zfNodeControl, NodeCheckBox aiNodeControl,
            NodeCheckBox gNodeControl, AdvNodeTextBox defaultNodeControl, MySQLTableEditorWrapper wrapper)
            : base(tree, grtList, columnIconNodeControl, true)
        {
            this.listener = listener;

              this.nameNodeControl = nameNodeControl;
              this.datatypeComboBoxNodeControl = datatypeComboBoxNodeControl;
              this.pkNodeControl = pkNodeControl;
              this.nnNodeControl = nnNodeControl;
              this.uqNodeControl = uqNodeControl;
              this.binNodeControl = binNodeControl;
              this.unNodeControl = unNodeControl;
              this.zfNodeControl = zfNodeControl;
              this.aiNodeControl = aiNodeControl;
              this.gNodeControl = gNodeControl;
              this.defaultNodeControl = defaultNodeControl;
              this.mySQLTableEditorWrapper = wrapper;

            // assign virtual value events for displaying and processing the edited value content
            nameNodeControl.EditorInitialize += new EditorInitializeEventHandler(EditorInitialize);
            nameNodeControl.ValueNeeded += new EventHandler<NodeControlValueEventArgs>(ValueNeeded);
            nameNodeControl.ValuePushed += new EventHandler<NodeControlValueEventArgs>(ValuePushed);
              datatypeComboBoxNodeControl.EditorInitialize += new EditorInitializeEventHandler(EditorInitialize);
              datatypeComboBoxNodeControl.ValueNeeded += new EventHandler<NodeControlValueEventArgs>(ValueNeeded);
              datatypeComboBoxNodeControl.ValuePushed += new EventHandler<NodeControlValueEventArgs>(ValuePushed);

              pkNodeControl.ValueNeeded += new EventHandler<NodeControlValueEventArgs>(ValueNeeded);
              pkNodeControl.ValuePushed += new EventHandler<NodeControlValueEventArgs>(ValuePushed);
              nnNodeControl.ValueNeeded += new EventHandler<NodeControlValueEventArgs>(ValueNeeded);
            nnNodeControl.ValuePushed += new EventHandler<NodeControlValueEventArgs>(ValuePushed);
              uqNodeControl.ValueNeeded += new EventHandler<NodeControlValueEventArgs>(ValueNeeded);
              uqNodeControl.ValuePushed += new EventHandler<NodeControlValueEventArgs>(ValuePushed);
              binNodeControl.ValueNeeded += new EventHandler<NodeControlValueEventArgs>(ValueNeeded);
              binNodeControl.ValuePushed += new EventHandler<NodeControlValueEventArgs>(ValuePushed);
              unNodeControl.ValueNeeded += new EventHandler<NodeControlValueEventArgs>(ValueNeeded);
              unNodeControl.ValuePushed += new EventHandler<NodeControlValueEventArgs>(ValuePushed);
              zfNodeControl.ValueNeeded += new EventHandler<NodeControlValueEventArgs>(ValueNeeded);
              zfNodeControl.ValuePushed += new EventHandler<NodeControlValueEventArgs>(ValuePushed);
              aiNodeControl.ValueNeeded += new EventHandler<NodeControlValueEventArgs>(ValueNeeded);
            aiNodeControl.ValuePushed += new EventHandler<NodeControlValueEventArgs>(ValuePushed);
              gNodeControl.ValueNeeded += new EventHandler<NodeControlValueEventArgs>(ValueNeeded);
              gNodeControl.ValuePushed += new EventHandler<NodeControlValueEventArgs>(ValuePushed);

              defaultNodeControl.EditorInitialize += new EditorInitializeEventHandler(EditorInitialize);
            defaultNodeControl.ValueNeeded += new EventHandler<NodeControlValueEventArgs>(ValueNeeded);
            defaultNodeControl.ValuePushed += new EventHandler<NodeControlValueEventArgs>(ValuePushed);
        }
开发者ID:abibell,项目名称:mysql-workbench,代码行数:58,代码来源:DbMysqlTableColumnsListModel.cs

示例14: ChooseColumnsWindow

        public ChooseColumnsWindow(TreeViewAdv tree)
            : this()
        {
            _list = tree;

            foreach (TreeColumn column in tree.Columns)
            {
                listColumns.Items.Add(new ListViewItem()
                {
                    Text = column.Header,
                    Name = column.Header,
                    Checked = column.IsVisible
                });
            }
        }
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:15,代码来源:ChooseColumnsWindow.cs

示例15: GrtTreeModel

        /// <summary>
        /// The constructor that has to be overwritten in the derived model classes
        /// </summary>
        /// <param name="TreeView">The TreeViewAdv control this model is used for</param>
        /// <param name="GrtTree">The GRT tree this model is representing</param>
        /// <param name="DynamicContextMenu">Use context menu definition provided by backend</param>
        protected GrtTreeModel(TreeViewAdv TreeView, MySQL.Grt.TreeModelWrapper GrtTree, bool DynamicContextMenu)
            : this()
        {
            model = GrtTree;
            treeControl = TreeView;

            treeControl.Expanding += new EventHandler<TreeViewAdvEventArgs>(TreeViewExpanding);
            treeControl.Collapsing += new EventHandler<TreeViewAdvEventArgs>(TreeViewCollapsing);

              if (DynamicContextMenu)
              {
            treeControl.ContextMenuStrip = new System.Windows.Forms.ContextMenuStrip();
            treeControl.ContextMenuStrip.Opening += new System.ComponentModel.CancelEventHandler(ContextMenuStrip_Opening);
              }
        }
开发者ID:abibell,项目名称:mysql-workbench,代码行数:21,代码来源:GrtTreeModel.cs


注:本文中的Aga.Controls.Tree.TreeViewAdv类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。