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