/// <summary>
 /// Form constructor
 /// </summary>
 public FormMinDistances()
 {
     InitializeComponent();
     dataGridView.DataSource = tableDijkstra;
     if (FormRouteTable.TablesRequired)
     {
         FormRouteTable.createTables();
     }
 }
Esempio n. 2
0
 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();
 }