Beispiel #1
0
 private void Go_On(object sender, EventArgs e)
 {
     if (root.Get_Text() == Target)
     {
         foreach (Button b in Controls)
         {
             if (b.Text == Target)
             {
                 b.BackgroundImage = circle_1;
                 btn_Go.Visible    = false;
             }
         }
     }
     else
     {
         foreach (Button b in Controls)
         {
             if (b.Text == root.Get_Text())
             {
                 b.BackgroundImage = circle_3;
             }
         }
         root = root.Get_Shortest();
     }
 }
Beispiel #2
0
 public A_Star()
 {
     root = A;
     InitializeNudes();
     InitializeComponent();
 }
Beispiel #3
0
 // Set & Get Nudes
 public void Add_Nude(Nude n, int g)
 {
     Object[] o = { n, g };
     this.Nudes.Add(o);
 }