private void LevelUp(Heroes.Core.Hero hero) { while (hero.IsLevelUp()) { Heroes.Core.Map.frmLevelUp f = new Heroes.Core.Map.frmLevelUp(); f.ShowDialog(hero); } }