예제 #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();
     }
 }
예제 #2
0
 public A_Star()
 {
     root = A;
     InitializeNudes();
     InitializeComponent();
 }
예제 #3
0
 // Set & Get Nudes
 public void Add_Nude(Nude n, int g)
 {
     Object[] o = { n, g };
     this.Nudes.Add(o);
 }