Esempio n. 1
0
        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();
        }
        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();
        }