本文整理汇总了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);
}
示例2: ResizeColumnState
public ResizeColumnState(TreeViewAdv tree, TreeColumn column, Point p)
: base(tree)
{
_column = column;
_initLocation = p;
_initWidth = column.Width;
}
示例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();
}
示例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);
}
示例5: AutoHeaderHeightLayout
public AutoHeaderHeightLayout(TreeViewAdv treeView, int headerHeight)
{
_treeView = treeView;
PreferredHeaderHeight = headerHeight;
_measureContext = new DrawContext();
_measureContext.Graphics = Graphics.FromImage(new Bitmap(1, 1));
}
示例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);
}
示例7: TreeNodeAdv
internal TreeNodeAdv(TreeViewAdv tree, object tag)
{
_row = -1;
_tree = tree;
_nodes = new Collection<TreeNodeAdv>();
_children = new ReadOnlyCollection<TreeNodeAdv>(_nodes);
_tag = tag;
}
示例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));
}
示例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;
}
示例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();
}
示例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);
}
}
示例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;
}
示例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);
}
示例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
});
}
}
示例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);
}
}