public ReplaceItem() { InitializeComponent(); appLanguage(); AllSelData asd = new AllSelData(); for (int i = 0; i < asd.getSlotStrCount(); i++) { tabRItemSlot.Items.Add(asd.getSlotStr(i)); } for (int i = 0; i < asd.getItemNameListCount(); i++) { tabRItemItem.Items.Add(asd.getItemNameList(i)); } for (int i = 0; i < asd.getHideListCount(); i++) { tabRItemHide.Items.Add(asd.getHideList(i)); } tabRItemBlock.IsChecked = false; tabRItemEntity.IsChecked = true; clear(); }