private void tbnTalents_Click(object sender, EventArgs e) { TalentForm talents = new TalentForm(this); talents.SetParameters(Character.Talents, Character.CharacterClass.Priest); talents.Show(); }
public TalentIcon(TalentForm parentForm) { this.parentForm = parentForm; InitializeComponent(); panel1.Resize += new EventHandler(panel1_Resize); panel1.Click += new EventHandler(panel1_Click); panel1.MouseHover += new EventHandler(panel1_MouseHover); }
public TalentIcon(TalentForm parentForm, TalentItem ti, Character.CharacterClass charClass) : this(parentForm) { Talent = ti; _name = ti.Name; CharClass = charClass; getIcon(ti, charClass); panel1.Width = _icon.Width; panel1.Height = _icon.Height; }