public static void MarkedField(XYButton b, Point START, Point END) { if (b.index != START && b.index != END && b.BackColor != MARKED_COLOR) { Form1.ChangeBackColor(b, MARKED_COLOR); b.Update(); } }
public static void EmptyField(XYButton b) { Form1.ChangeBackColor(b, EMPTY_COLOR); b.Update(); }
public static void PathField(XYButton b) { Form1.ChangeBackColor(b, PATH_COLOR); b.Update(); }
public static void EndField(XYButton b) { Form1.ChangeBackColor(b, END_COLOR); b.Update(); }
public static void WallField(XYButton b) { Form1.ChangeBackColor(b, WALL_COLOR); b.Update(); }