Exemple #1
0
 //найти путь
 private void btnRun_Click(object sender, EventArgs e)
 {
     if (!DataGridViewUtils.CheckDataGridView(dgvLabirinth))
     {
         MessageBox.Show("В лабиринте должен быть один вход и один выход.",
                         "Внимание!", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
     else
     {
         routeIsBuilt = lbr.FindWay((int)countGrenades.Value, (int)size.Value, start, finish);
         //countGrenades и size - с формы
     }
 }