private void mark(Button btn) { btn.BackgroundImage = Player[CurrentPlayer].Mark; SoundGame.soundGamePlay("\\sound\\bipmain.wav"); //Image.FromFile(Application.StartupPath+"\\image\\x.jpg"); }
private void tmCoolDown_Tick(object sender, EventArgs e) { tick += 10; pgbCoolDown.PerformStep(); if (pgbCoolDown.Value >= pgbCoolDown.Maximum) { notification(); socket.send(new SocketData((int)SocketCommand.TIME_OUT, "", new Point())); } if (tick == 600 && pnChessBoard.Enabled == true) { SoundGame.soundGamePlay("\\sound\\timeoutmain.wav"); } }
private void onToolStripMenuItem_Click(object sender, EventArgs e) { SoundGame.soundGamePlay("\\sound\\timeoutmain.wav"); SoundGame.soundGamePlay("\\sound\\bipmain.wav"); Custom.unmute(); }