private void ControlNodeLazyLoad(object sender, TreeListView.NodeEventArgs e) { if (e.Node.Tag is DirectoryInfo) { EnumerateDirectory(e.Node); } }
private void TreeListViewNodeExpandedChanged(object sender, TreeListView.NodeEventArgs e) { Outputs.WriteLine( OutputMessageType.Info, "{0} {1}", e.Node.Label, e.Node.Expanded ? "expanded!" : "collapsed!"); }
private void TreeListViewNodeLazyLoad(object sender, TreeListView.NodeEventArgs e) { object item = e.Node.Tag; if (item == null) { return; } ItemLazyLoad.Raise(this, new ItemLazyLoadEventArgs(item)); }
private void TreeListViewNodeExpandedChanged(object sender, TreeListView.NodeEventArgs e) { object item = e.Node.Tag; if (item == null) { return; } ItemExpandedChanged.Raise(this, new NodeAdapterEventArgs(item, e.Node)); }
private void TreeListViewNodeExpandedChanged(object sender, TreeListView.NodeEventArgs e) { if (base.View == null) { return; } var variable = e.Node.As <ISledLuaVarBaseType>(); if (variable == null) { return; } variable.Expanded = e.Node.Expanded; }