internal void CloseGraphLayout(MyNodeGroup target) { if (GraphViews.ContainsKey(target)) { GraphViews[target].Close(); } }
internal void ReloadGraphLayout(MyNodeGroup target) { if (GraphViews.ContainsKey(target)) { GraphViews[target].ReloadContent(); } }
public GraphLayoutForm OpenGraphLayout(MyNodeGroup target) { GraphLayoutForm graphForm; if (GraphViews.ContainsKey(target)) { graphForm = GraphViews[target]; } else { graphForm = new GraphLayoutForm(this, target); graphForm.FormClosed += GraphLayoutForm_FormClosed; GraphViews.Add(target, graphForm); } graphForm.Show(dockPanel, DockState.Document); return(graphForm); }
private void GraphLayoutForm_FormClosed(object sender, FormClosedEventArgs e) { GraphViews.Remove((sender as GraphLayoutForm).Target); }
private void CloseAllGraphLayouts() { GraphViews.Values.ToList().ForEach(view => view.Close()); GraphViews.Clear(); NetworkView = null; }