Example #1
0
        private void RefreshItems()
        {
            if (CurrentNpc.Items.Count == 1)
            {
                lstNpcItems.SetObjects(null);
            }
            lstNpcItems.SetObjects(CurrentNpc.Items);
            foreach (EncounterItem It in CurrentNpc.Items)
            {
                It.Item.Define = ItemPid.GetDefineName(It.Item.Pid);
            }

            lstNpcItems.SelectedObject = CurrentItem;
        }
Example #2
0
 private void AddArmorProtoToCmb(ArmorProto ItProt, ComboBox Cmb)
 {
     Cmb.Items.Add(ItProt.Name + " [" + (!String.IsNullOrEmpty(ItemPid.GetDefineName(ItProt.ProtoId)) ? ItemPid.GetDefineName(ItProt.ProtoId) : ItProt.ProtoId.ToString()) + "]");
 }