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); }
//--------------------------------------------------------------------------- private void SetListBoxTabs(ListBox lst, IEnumerable <int> tabs) { // Make sure the control will use them. lst.UseTabStops = true; lst.UseCustomTabOffsets = true; // Get the control's tab offset collection. ListBox.IntegerCollection offsets = lst.CustomTabOffsets; // Define the tabs. foreach (int tab in tabs) { offsets.Add(tab); } }
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(); }