本文整理汇总了C#中Aga.Controls.Tree.TreeViewAdv类的典型用法代码示例。如果您正苦于以下问题:C# TreeViewAdv类的具体用法?C# TreeViewAdv怎么用?C# TreeViewAdv使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TreeViewAdv类属于Aga.Controls.Tree命名空间,在下文中一共展示了TreeViewAdv类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: DbMysqlTableIndicesListModel
/// <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 DbMysqlTableIndicesListModel(TreeViewAdv tree, IndexListWrapper grtList,
AdvNodeTextBox nameNodeControl, AdvNodeComboBox typeNodeControl,
AdvNodeComboBox indexColumnNameNodeControl, MySQLTableEditorWrapper wrapper)
: base(tree, grtList, true)
{
this.nameNodeControl = nameNodeControl;
this.typeNodeControl = typeNodeControl;
this.indexColumnNameNodeControl = indexColumnNameNodeControl;
tableEditorWrapper = 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);
typeNodeControl.EditorInitialize += new EditorInitializeEventHandler(EditorInitialize);
typeNodeControl.ValueNeeded += new EventHandler<NodeControlValueEventArgs>(ValueNeeded);
typeNodeControl.ValuePushed += new EventHandler<NodeControlValueEventArgs>(ValuePushed);
}
开发者ID:abibell,项目名称:mysql-workbench,代码行数:23,代码来源:DbMysqlTableIndicesListModel.cs
示例17: ChooseColumnsWindow
public ChooseColumnsWindow(TreeViewAdv tree)
: this()
{
_list = tree;
List<TvColumn> columns = new List<TvColumn>();
foreach (TreeColumn column in tree.Columns)
{
columns.Add(new TvColumn
{
Header = column.Header,
Index = column.Index,
Visible = column.IsVisible
});
}
columns.Sort((tvc1, tvc2) =>
{
// Sort by visibility first.
if (tvc1.Visible != tvc2.Visible)
return -tvc1.Visible.CompareTo(tvc2.Visible);
// Sort the visible columns by index.
if (tvc1.Visible == true)
return tvc1.Index.CompareTo(tvc2.Index);
// Sort the hidden columns by name.
if (tvc1.Visible == false)
return tvc1.Header.CompareTo(tvc2.Header);
return 0;
});
foreach (var column in columns)
{
listColumns.Items.Add(new ListViewItem()
{
Text = column.Header,
Name = column.Header,
Checked = column.Visible
});
}
}
开发者ID:john-peterson,项目名称:processhacker,代码行数:44,代码来源:ChooseColumnsWindow.cs
示例18: AgaTreeStateKeeper
public AgaTreeStateKeeper(TreeViewAdv tree)
{
Debug.Assert(tree != null, "State keeper needs a tree to work with.");
Tree = tree;
Tree.BeginUpdate();
TreeNodeAdv node = Tree.Root;
do
{
if (node.IsExpanded && node.Children.Count > 0)
{
nodePath.Enqueue(GetCaption(node));
node = node.Children[0];
}
else
{
if (node.NextNode != null)
node = node.NextNode;
else
{
// No further sibling. Walk up the parents path until we find one with a next sibling.
do
{
if (node.Parent == null)
node = null;
else
{
node = node.Parent;
nodePath.Enqueue(backtrack);
if (node.NextNode != null)
{
node = node.NextNode;
break;
}
}
}
while (node != null);
}
}
}
while (node != null);
}
开发者ID:abibell,项目名称:mysql-workbench,代码行数:43,代码来源:AgaTreeStateKeeper.cs
示例19: DbMysqlTableFkListModel
/// <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 DbMysqlTableFkListModel(TreeViewAdv tree, FKConstraintListWrapper grtList,
AdvNodeTextBox nameNodeControl, AdvNodeComboBox targetNodeControl,
MySQLTableEditorWrapper wrapper, NodeCheckBox columnEnabledFkNodeControl)
: base(tree, grtList, true)
{
this.nameNodeControl = nameNodeControl;
this.targetNodeControl = targetNodeControl;
this.mySQLTableEditorWrapper = wrapper;
this.columnEnabledFkNodeControl = columnEnabledFkNodeControl;
// 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);
targetNodeControl.EditorInitialize += new EditorInitializeEventHandler(EditorInitialize);
targetNodeControl.ValueNeeded += new EventHandler<NodeControlValueEventArgs>(ValueNeeded);
targetNodeControl.ValuePushed += new EventHandler<NodeControlValueEventArgs>(ValuePushed);
}
开发者ID:abibell,项目名称:mysql-workbench,代码行数:25,代码来源:DbMysqlTableFkListModel.cs
示例20: SaveSettings
/// <summary>
/// Saves the column settings of the specified TreeViewAdv to a string.
/// </summary>
/// <param name="lv"></param>
/// <returns></returns>
public static string SaveSettings(TreeViewAdv tv)
{
StringBuilder result = new StringBuilder();
try
{
for (int i = 0; i < tv.Columns.Count; i++)
{
TreeColumn c = tv.Columns[i];
result.Append(c.Header + "," + c.Width.ToString() + "," + c.SortOrder.ToString() +
"," + c.IsVisible.ToString() + "|");
}
}
catch
{ }
if (result.Length > 0)
result.Remove(result.Length - 1, 1);
return result.ToString();
}
开发者ID:andyvand,项目名称:ProcessHacker,代码行数:26,代码来源:ColumnSettings.cs
注:本文中的Aga.Controls.Tree.TreeViewAdv类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论