public void ShowTree(CALLING_CONTROL whoCalled, QueryControl mustQuery, string entryPoint = null, string dcName = null, ForestInfo fiH = null) { bool mustreload = false; Caller = whoCalled; if (entryPoint != null) { mustreload = FindNode(entryPoint); } if (QueryCtrl.ShowDeleted != mustQuery.ShowDeleted) { mustreload = true; } QueryCtrl.ShowDeleted = mustQuery.ShowDeleted; if (QueryCtrl.ShowRecycled != mustQuery.ShowRecycled) { mustreload = true; } QueryCtrl.ShowRecycled = mustQuery.ShowRecycled; if (QueryCtrl.Port != mustQuery.Port) { mustreload = true; } QueryCtrl.Port = mustQuery.Port; if (dcName != null) { DC = dcName; } if (fiH != null) { ThisForestInfo = fiH; } TreeNode parent = null; if (mustreload) { ADObjectInfo oinfo = new ADObjectInfo() { Name = entryPoint, Path = entryPoint, ObjectClass = "nc" }; mustreload = AddEntry(ref parent, oinfo); } this.Show(); if (mustreload) { ExpandNode(parent); } this.tvLdap.Sort(); }
public LDAPBrowser(CALLING_CONTROL whoCalled, QueryControl mustQuery, string entryPoint, string dcName, ForestInfo fiH) { InitializeComponent(); LoadInternal(whoCalled, mustQuery, entryPoint, dcName, fiH); }
private void LoadInternal(CALLING_CONTROL whoCalled, QueryControl mustQuery, string entryPoint, string dcName, ForestInfo fiH) { ShowTree(whoCalled, mustQuery, entryPoint, dcName, fiH); }