/// <summary> /// Form constructor /// </summary> public FormMinDistances() { InitializeComponent(); dataGridView.DataSource = tableDijkstra; if (FormRouteTable.TablesRequired) { FormRouteTable.createTables(); } }
private void toolStripButtonStep_Click(object sender, EventArgs e) { if (FormRouteTable.TablesRequired) { FormRouteTable.createTables(); } foreach (var edge in edges) { if (edge.Enabled) { edge.SendPackets(); } } foreach (var node in nodes) { if (node.Enabled) { node.SendPackets(); } } Tact++; area.Invalidate(); }