Ejemplo n.º 1
0
 private void BbBtn_Click(object sender, RoutedEventArgs e)
 {
     foreach (Button btn in algorithmsBtns)
     {
         btn.Background = Brushes.MediumPurple;
     }
     bbBtn.Background = Brushes.Purple;
     algorithm        = Algorithm.BranchBoundAlgorithm;
 }
Ejemplo n.º 2
0
 private void GreedyBtn_Click(object sender, RoutedEventArgs e)
 {
     foreach (Button btn in algorithmsBtns)
     {
         btn.Background = Brushes.MediumPurple;
     }
     greedyBtn.Background = Brushes.Purple;
     algorithm            = Algorithm.GreedyAlgorithm;
 }
Ejemplo n.º 3
0
 private void DpBtn_Click(object sender, RoutedEventArgs e)
 {
     foreach (Button btn in algorithmsBtns)
     {
         btn.Background = Brushes.MediumPurple;
     }
     dpBtn.Background = Brushes.Purple;
     algorithm        = Algorithm.DynamicProgrammingAlgorithm;
 }