private void btBack_Click(object sender, EventArgs e) { if (ActiveGame.IsGameStarted) { MesajSonuç msonuc = Mesaj.mbox.Göster(String.GetLangText("STI_GAME_RETURN"), String.GetLangText("STI_GAME_RETURN_HDR"), MessageBoxButtons.YesNo); if (msonuc.MesajCevap != DialogResult.Yes) { return; } ActiveGame.Resign(); } grpGame.Visible = false; grpStartNew.Visible = true; lblInfo.Text = ""; }
private void btRestart_Click(object sender, EventArgs e) { if (ActiveGame.IsGameStarted) { if (!GlobalVariants.ActiveProfile.DisableWarnings) { MesajSonuç msonuc = Mesaj.mbox.Göster(String.GetLangText("STI_GAME_RESIGN"), String.GetLangText("STI_GAME_RETURN_HDR"), MessageBoxButtons.YesNo); if (msonuc.MesajCevap != DialogResult.Yes) { return; } } ActiveGame.Resign(); return; } ActiveGame.RestartGame(); }
private void profilDeğiştirToolStripMenuItem_Click(object sender, EventArgs e) { string oldname = GlobalVariants.ActiveProfile.ProfileName; UserProfile uProfil = ProfileSelector.SelectProfile(); if (uProfil != null && oldname != uProfil.ProfileName) { if (ActiveGame.IsGameStarted) { ActiveGame.Resign(); } grpStartNew.Visible = true; grpGame.Visible = false; UserProfileUtils.SaveUserProfile(GlobalVariants.ActiveProfile); GlobalVariants.ActiveProfile = uProfil; UserProfileStatsGenerator.RecordProfile(GlobalVariants.ActiveProfile, ActiveGame); } }