private void button_Send_Click(object sender, EventArgs e) { SQLiteDBHelper _helper = new SQLiteDBHelper(Config.CfgInfo.DBPath_Well); ConcurrentQueue <String> frags = new ConcurrentQueue <string>(); String[] tempFrags; String data; String tabid; WitsTable wt; String frag; data = textBox_SendData.Text.Trim(); tempFrags = data.Split(fragSep, StringSplitOptions.RemoveEmptyEntries); foreach (String str in tempFrags) { frags.Enqueue(str); } while (frags.Count > 0) { frags.TryDequeue(out frag); toWitsTable(frag, out tabid); if (tabQueue.Count > 0) { tabQueue.TryDequeue(out wt); idQueue.TryDequeue(out tabid); _helper.WitsTabAnalysis(tabid, wt); _helper.InsertWitsData("2", tabid, wt); } } }