private void button2_Click(object sender, EventArgs e) { ChessMain newgame = new ChessMain(); newgame.Show(); this.Hide(); }
public bool LastMoveByClick; // Stores true if the last move was made by mouse click (instead of drag and drop) public GameUI(ChessMain form) { sSynth.Rate = -2; this.ParentForm = form; // get and store reference of parent form // Load all the chess images in a list ChessImages = new Images(); #if DEBUG ResourceFolder = "..\\..\\Resources\\"; #else ResourceFolder = "Resources\\"; #endif // For Production Release ResourceFolder = "Resources\\"; ChessImages.LoadImages(ResourceFolder); Sounds = new Sounds(ResourceFolder); // create the sounds object for playing sound BuildBoard(); sSynth.SpeakAsync("Welcome to Audio Chess! "); ParentForm.ChessCaptureBar.InitializeBar(ChessImages); // Initialize chess bar // Initialize variables ShowMoveHelp = true; // }
public GameUI(ChessMain form) { this.ParentForm = form; // get and store reference of parent form // Load all the chess images in a list ChessImages = new Images(); #if DEBUG ResourceFolder = "..\\..\\Resources\\"; #else ResourceFolder = "Resources\\"; #endif ChessImages.LoadImages(ResourceFolder); BuildBoard(); // Initialize variables ShowMoveHelp = true; // }
public bool LastMoveByClick; // Stores true if the last move was made by mouse click (instead of drag and drop) public GameUI(ChessMain form) { this.ParentForm = form; // get and store reference of parent form // Load all the chess images in a list ChessImages = new Images(); #if DEBUG ResourceFolder = "..\\..\\Resources\\"; #else ResourceFolder = "Resources\\"; #endif ChessImages.LoadImages(ResourceFolder); Sounds = new Sounds(ResourceFolder); // create the sounds object for play sound BuildBoard(); ParentForm.ChessCaptureBar.InitializeBar(ChessImages); // Initialize chess bar // Initialize variables ShowMoveHelp = true; // }
public bool LastMoveByClick; // Stores true if the last move was made by mouse click (instead of drag and drop) public GameUI(ChessMain form) { this.ParentForm = form; // get and store reference of parent form // Load all the chess images in a list ChessImages = new Images(); #if DEBUG ResourceFolder = "..\\..\\Resources\\"; #else ResourceFolder = "Resources\\"; #endif ResourceFolder = "Resources\\"; ChessImages.LoadImages(ResourceFolder); BuildBoard(); ParentForm.ChessCaptureBar.InitializeBar(ChessImages); // Initialize chess bar // Show legal moves for selected piece ShowMoveHelp = true; // }