Ejemplo n.º 1
0
 internal void CloseGraphLayout(MyNodeGroup target)
 {
     if (GraphViews.ContainsKey(target))
     {
         GraphViews[target].Close();
     }
 }
Ejemplo n.º 2
0
 internal void ReloadGraphLayout(MyNodeGroup target)
 {
     if (GraphViews.ContainsKey(target))
     {
         GraphViews[target].ReloadContent();
     }
 }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
 private void GraphLayoutForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     GraphViews.Remove((sender as GraphLayoutForm).Target);
 }
Ejemplo n.º 5
0
 private void CloseAllGraphLayouts()
 {
     GraphViews.Values.ToList().ForEach(view => view.Close());
     GraphViews.Clear();
     NetworkView = null;
 }