private void KelimeOyunu_FormClosed(object sender, FormClosedEventArgs e)
 {
     //Uygulamadan çıkış yapıldığında geçerli profil dosyasına kayıt yapar.
     if (ActiveGame.IsGameStarted)
     {
         ActiveGame.Abort();
     }
     UserProfileUtils.SaveUserProfile(GlobalVariants.ActiveProfile);
     GlobalSettings.SaveSettings();
 }
        private void closeProfileToolStripMenuItem_Click(object sender, EventArgs e)
        {
            MesajSonuç mesajSonuç = Mesaj.mbox.Göster(String.GetLangText("MENU_PROF_CLOSE_PRMPT"), "", MessageBoxButtons.YesNo);

            if (mesajSonuç.MesajCevap == DialogResult.Yes)
            {
                UserProfileUtils.SaveUserProfile(GlobalVariants.ActiveProfile);
                if (ActiveGame.IsGameStarted)
                {
                    ActiveGame.Abort();
                }
                GlobalVariants.ActiveProfile = null;
                CheckProfile(true);
            }
        }