本文整理汇总了C#中Aga.Controls.Tree.TreeModelEventArgs类的典型用法代码示例。如果您正苦于以下问题:C# TreeModelEventArgs类的具体用法?C# TreeModelEventArgs怎么用?C# TreeModelEventArgs使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TreeModelEventArgs类属于Aga.Controls.Tree命名空间,在下文中一共展示了TreeModelEventArgs类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: StructureChanged_event_should_bubble_up
public void StructureChanged_event_should_bubble_up()
{
var flag = false;
decorator.StructureChanged += (s, e) => { flag = true; };
var eventArgs = new TreeModelEventArgs(new TreePath(), new object[0]);
treeModel.Raise(tm => tm.StructureChanged += null, null, eventArgs);
Assert.IsTrue(flag);
}
开发者ID:dougrathbone,项目名称:mbunit-v3,代码行数:10,代码来源:TreeModelDecoratorTest.cs
示例2: model_NodesInserted
void model_NodesInserted(object sender, TreeModelEventArgs e)
{
insert++;
}
开发者ID:ishani,项目名称:VSOExp,代码行数:4,代码来源:NodeTest.cs
示例3: OnNodeRemoved
internal void OnNodeRemoved(Node parent, int index, Node node)
{
if (NodesRemoved != null)
{
TreeModelEventArgs args = new TreeModelEventArgs(GetPath(parent), new int[] { index }, new object[] { node });
NodesRemoved(this, args);
}
}
开发者ID:Celtech,项目名称:BolDevStudio,代码行数:8,代码来源:TreeModel.cs
示例4: OnNodesChanged
internal protected virtual void OnNodesChanged(Node parent, int index, Node node)
{
if (NodesChanged != null)
{
TreePath path = GetPath(parent);
if (path == null) return;
TreeModelEventArgs args = new TreeModelEventArgs(path, new int[] { index }, new object[] { node });
NodesChanged(this, args);
}
}
开发者ID:montague247,项目名称:treeviewadv,代码行数:10,代码来源:TreeModel.cs
示例5: NotifyNodesChanged
private void NotifyNodesChanged()
{
if (!_notify)
return;
var model = FindModel();
if (model != null)
{
TreePath path = model.GetPath(this);
if (path != null)
{
var args = new TreeModelEventArgs(path, new object[] { this });
model.RaiseNodesChanged(args);
}
}
}
开发者ID:kanbang,项目名称:Colt,代码行数:16,代码来源:RepositoryTreeModel.cs
示例6: OnNodeRemoved
public void OnNodeRemoved(TreeModelEventArgs args)
{
if (NodesRemoved != null)
NodesRemoved(this, args);
}
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:5,代码来源:TreeListAdapter.cs
示例7: ClearNodesSize
private void ClearNodesSize(TreeModelEventArgs e, TreeNodeAdv parent)
{
if (e.Indices != null)
{
foreach (int index in e.Indices)
{
if (index >= 0 && index < parent.Nodes.Count)
{
TreeNodeAdv node = parent.Nodes[index];
node.Height = node.RightBounds = null;
}
else
throw new ArgumentOutOfRangeException("Index out of range");
}
}
else
{
foreach (TreeNodeAdv node in parent.Nodes)
{
foreach (object obj in e.Children)
if (node.Tag == obj)
{
node.Height = node.RightBounds = null;
}
}
}
}
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:27,代码来源:TreeViewAdv.cs
示例8: _model_NodesInserted
private void _model_NodesInserted(object sender, TreeModelEventArgs e)
{
if (e.Indices == null)
throw new ArgumentNullException("Indices");
TreeNodeAdv parent = FindNode(e.Path);
if (parent != null)
{
for (int i = 0; i < e.Children.Length; i++)
AddNewNode(parent, e.Children[i], e.Indices[i]);
}
SmartFullUpdate();
}
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:13,代码来源:TreeViewAdv.cs
示例9: TreeNodesRemoved
private void TreeNodesRemoved(object sender, TreeModelEventArgs e)
{
OnNodesRemoved(e);
}
开发者ID:TroutZhang,项目名称:unreal-debugger,代码行数:4,代码来源:WatchPanel.cs
示例10: TreeNodesInserted
private void TreeNodesInserted(object sender, TreeModelEventArgs e)
{
OnNodesInserted(e);
}
开发者ID:TroutZhang,项目名称:unreal-debugger,代码行数:4,代码来源:WatchPanel.cs
示例11: mTreeModel_NodesRemoved
/// <summary>
/// Nodes have been removed. Remove the event handlers
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
void mTreeModel_NodesRemoved(object sender, TreeModelEventArgs e)
{
foreach (Node node in e.Children)
{
SetHandlers(node, false);
}
}
开发者ID:RasterCode,项目名称:OtterUI,代码行数:12,代码来源:SceneHierarchyView.cs
示例12: mTreeModel_NodesInserted
/// <summary>
/// Called when new nodes were inserted into the tree model.
/// We need to set the nodes' event handlers accordingly.
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
void mTreeModel_NodesInserted(object sender, TreeModelEventArgs e)
{
foreach (Node node in e.Children)
{
SetHandlers(node, true);
}
}
开发者ID:RasterCode,项目名称:OtterUI,代码行数:13,代码来源:SceneHierarchyView.cs
示例13: OnNodesRemoved
protected void OnNodesRemoved(TreeModelEventArgs args)
{
if (NodesRemoved != null)
NodesRemoved(this, args);
}
开发者ID:segafan,项目名称:wme1_jankavan_tlc_edition-repo,代码行数:5,代码来源:TreeModelBase.cs
示例14: RaiseNodesChanged
internal void RaiseNodesChanged(TreeModelEventArgs args)
{
base.OnNodesChanged(args);
}
开发者ID:kanbang,项目名称:Colt,代码行数:4,代码来源:RepositoryTreeModel.cs
示例15: model_NodesRemoved
void model_NodesRemoved(object sender, TreeModelEventArgs e)
{
remove++;
}
开发者ID:ishani,项目名称:VSOExp,代码行数:4,代码来源:NodeTest.cs
示例16: _treeModel_NodesChanged
void _treeModel_NodesChanged(object sender, TreeModelEventArgs e)
{
if (this.InvokeRequired)
{
TreeModelEventDelegate del = new TreeModelEventDelegate(
_treeModel_NodesChanged);
this.Invoke(del, new object[] { sender, e });
return;
}
//authPanel.ValidateChildren();
_workArea.Invalidate(true);
}
开发者ID:virl,项目名称:yttrium,代码行数:14,代码来源:MainForm.cs
示例17: _model_NodesChanged
private void _model_NodesChanged(object sender, TreeModelEventArgs e)
{
TreeNodeAdv parent = FindNode(e.Path);
if (parent != null && parent.IsVisible && parent.IsExpanded)
{
if (InvokeRequired)
Invoke(new UpdateContentWidthDelegate(ClearNodesSize), e, parent);
else
ClearNodesSize(e, parent);
SmartFullUpdate();
}
}
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:12,代码来源:TreeViewAdv.cs
示例18: _innerModel_NodesRemoved
void _innerModel_NodesRemoved(object sender, TreeModelEventArgs e)
{
OnStructureChanged(new TreePathEventArgs(e.Path));
}
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:4,代码来源:SortedTreeModel.cs
示例19: _model_NodesRemoved
private void _model_NodesRemoved(object sender, TreeModelEventArgs e)
{
TreeNodeAdv parent = FindNode(e.Path);
if (parent != null)
{
if (e.Indices != null)
{
List<int> list = new List<int>(e.Indices);
list.Sort();
for (int n = list.Count - 1; n >= 0; n--)
{
int index = list[n];
if (index >= 0 && index <= parent.Nodes.Count)
parent.Nodes.RemoveAt(index);
else
throw new ArgumentOutOfRangeException("Index out of range");
}
}
else
{
for (int i = parent.Nodes.Count - 1; i >= 0; i--)
{
for (int n = 0; n < e.Children.Length; n++)
if (parent.Nodes[i].Tag == e.Children[n])
{
parent.Nodes.RemoveAt(i);
break;
}
}
}
}
UpdateSelection();
SmartFullUpdate();
}
开发者ID:RoDaniel,项目名称:featurehouse,代码行数:35,代码来源:TreeViewAdv.cs
示例20: _model_NodesChanged
private void _model_NodesChanged(object sender, TreeModelEventArgs e)
{
TreeNodeAdv parent = FindNode(e.Path);
if (parent != null)
{
if (e.Indices != null)
{
foreach (int index in e.Indices)
{
if (index >= 0 && index < parent.Nodes.Count)
{
TreeNodeAdv node = parent.Nodes[index];
Rectangle rect = GetNodeBounds(node);
_contentWidth = Math.Max(_contentWidth, rect.Right);
}
else
throw new ArgumentOutOfRangeException("Index out of range");
}
}
else
{
foreach (TreeNodeAdv node in parent.Nodes)
{
foreach (object obj in e.Children)
if (node.Tag == obj)
{
Rectangle rect = GetNodeBounds(node);
_contentWidth = Math.Max(_contentWidth, rect.Right);
}
}
}
}
_rowLayout.ClearCache();
SafeUpdateScrollBars();
UpdateView();
}
开发者ID:virl,项目名称:yttrium,代码行数:36,代码来源:TreeViewAdv.cs
注:本文中的Aga.Controls.Tree.TreeModelEventArgs类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论