private void RenderList() { ListBox.IntegerCollection offsets = listBox_NaverKey.CustomTabOffsets; offsets.Clear(); listBox_NaverKey.Items.Clear(); listBox_NaverKey.SelectedItem = null; for (int i = 0; i < dataList.Count; i++) { string apiType = ""; if (dataList[i].isPaid) { apiType = "유료 API"; } else { apiType = "무료 API"; } listBox_NaverKey.Items.Add("id : " + dataList[i].id + " \t타입 : " + apiType + " \t상태 : " + dataList[i].eNMTstate.ToString()); } offsets.Add(120); offsets.Add(15); }
public void Init() { isLockAutoChange = false; listBox_NaverKey.UseTabStops = true; listBox_NaverKey.UseCustomTabOffsets = true; ListBox.IntegerCollection offsets = listBox_NaverKey.CustomTabOffsets; offsets.Clear(); listBox_NaverKey.Items.Clear(); listBox_NaverKey.SelectedItem = null; dataList = TransManager.Instace.naverKeyList; for (int i = 0; i < dataList.Count; i++) { listBox_NaverKey.Items.Add("id : " + dataList[i].id + " \tNMT : " + dataList[i].eNMTstate.ToString()); } offsets.Add(120); offsets.Add(15); CheckButtonStat(); }