Пример #1
0
 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);
 }
Пример #2
0
 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;
 }