Exemplo n.º 1
0
 private void TaskMenu_Click(object sender, EventArgs e)
 {
     using (TaskForm form = new TaskForm())
     {
         if (form.ShowDialog() != DialogResult.OK)
         {
             return;
         }
         if (form.topIndex < 0 || form.topIndex >= graph.Count || form.distance <= 0)
         {
             MessageBox.Show("Введены некорректные данные!");
             return;
         }
         graph.Task(form.topIndex, form.distance);
     }
 }
Exemplo n.º 2
0
 private void TaskMenu_Click(object sender, EventArgs e)
 {
     graph.Task();
 }