static void Main() { Application.Init(); Gtk.Window w = new Gtk.Window("Rubik's Revenge"); ColorCube cube = new ColorCube(); CubeCanvas cubeCanvas = new CubeCanvas(); cubeCanvas.Colors = cube.colors; Box box = new HBox(true, 0); box.Add((DrawingArea)cubeCanvas); w.Add(box); w.Resize(40 * 4 * 4, 40 * 4 * 3); //w.DeleteEvent += close_window; w.ShowAll(); MainClass solver = new MainClass(cubeCanvas); Thread solverThread = new Thread(new ThreadStart(solver.solveCube)); solverThread.Start(); //solver.compare (Twist.l); Application.Run(); }
public MainClass(CubeCanvas canvas) { colorCube = new ColorCube(); canvas.Colors = colorCube.colors; cubeCanvas = canvas; }