private void Graph_FormClosed(object sender, FormClosedEventArgs e) { if (trc != null) { trc.Close(); trc = null; } }
public Graph(List <string> nodesList, List <string> edges, bool isSpain) { InitializeComponent(); this.Size = new Size(1200, 700); this.StartPosition = FormStartPosition.Manual; //this.Location = new Point(Form1.ActiveForm.Location.X + Form1.ActiveForm.Width, Form1.ActiveForm.Location.Y); this.FormBorderStyle = FormBorderStyle.FixedSingle; //this.Size = new Size(500, 450); gi = new GraphInfo(nodesList, edges, isSpain); trc = new TransClose(nodesList, gi.matrix); trc.Show(); }