Beispiel #1
0
 public void SetSelectedNodes(IEnumerable <ProjectTreeNode> nodes)
 {
     using (FlagManager.UseFlag("ManualSelect"))
     {
         FlagManager.Set("WaitForManualSelect", true);
         ProjectTreeView.SelectObjects(nodes.ToList());
     }
 }
Beispiel #2
0
 private void ProjectTreeView_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (FlagManager.IsSet("PreventSelection") &&
         !FlagManager.IsSet("ItemSelectionChanged"))
     {
         using (FlagManager.UseFlag("ItemSelectionChanged"))
             ProjectTreeView.SelectObjects(SelectedItemCache);
     }
 }