private void guiRunCalculator_Click(object sender, EventArgs e) { if (activeHeroControl == null) { return; } var container = (D3HeroContainer)activeHeroControl.Tag; var hero = container.HeroSummary.GetHeroFromBattleTag(container.BattleTag); if (hero == null) { return; } var form = new D3CalculatorForm(hero); form.Show(); }