Exemplo n.º 1
0
 protected override void onSetSelectedAvailableItem(GameData.GenericGameItem selectedItem)
 {
     if (selectedItem == null)
     {
         textBoxModifiedItemPreview.Text = "";
         toolTip1.SetToolTip(textBoxModifiedItemPreview, "");
     }
     else
     {
         int rank = (int)this.numericUpDownModifiedItemLevel.Value;
         textBoxModifiedItemPreview.Text = (selectedItem as GameData.RankedGameItem)[rank].name;
         toolTip1.SetToolTip(textBoxModifiedItemPreview, (selectedItem as GameData.RankedGameItem)[rank].description);
     }
 }
Exemplo n.º 2
0
 protected virtual void onSetSelectedAvailableItem(GameData.GenericGameItem selectedItem)
 {
     toolTip1.SetToolTip(comboBoxAvailableItems,
                         selectedItem == null ? "" : selectedItem.description);
 }