public void AddWorkingSetLink(LazyTreeNode tn, LazyTreeNode ws) { var frmWS = new AddWSLink(); frmWS.LoadList(ws); frmWS.WorkingSetSelectionMade += new AddWSLink.ChosenWorkingSet(frmWS_WorkingSetSelectionMade); AddLinkToWorkingSet = tn; frmWS.ShowDialog(); //dataManager.workingSet.AddWorkingSetLink(); }
private void frmWS_WorkingSetSelectionMade(object sender, AddWSLink.WorkingSetSelectedArgs e) { if(e.Node==null) return; dataManager.workingSet.AddWorkingSetLink(e.Node.Name,AddLinkToWorkingSet.Name); view.UpdateNode(e.Node.Name, GetNodeChildren(e.Node.Name) ); }