private void btnShowOT30_Click(object sender, EventArgs e) { List <string> listT30 = new List <string>(); listT30 = quoteCom.GetProductListOTC(); listBox1.Items.Clear(); if (listT30 == null) { listBox1.Items.Add("無法取得櫃市商品列表,可能未連線/未下載!!"); return; } listBox1.Items.Add("上櫃商品列表"); listBox1.Items.Add("==============="); for (int i = 0; i < listT30.Count; i++) { listBox1.Items.Add(listT30[i]); } }