/// <summary> /// /// </summary> private void InitList() { listBox.Items.Clear(); if (radioButton1.Checked == false) { listBox.Enabled = true; StationInfo sDataInfo = new StationInfo(); s_Info = sDataInfo.GetPointInfo(); string sn; for (int i = 0; i < s_Info.Length; i++) { sn = s_Info[i].s_Name + STATIONNAME; listBox.Items.Add(sn); } } else { listBox.Enabled = false; } }
/// <summary> /// /// </summary> private void InitList() { listBox.Items.Clear(); if(radioButton1.Checked==false) { listBox.Enabled=true; StationInfo sDataInfo=new StationInfo(); s_Info=sDataInfo.GetPointInfo(); string sn; for(int i=0;i<s_Info.Length;i++) { sn= s_Info[i].s_Name; listBox.Items.Add(sn); } } else listBox.Enabled=false; }