public static void addSectionDataPerforation(string sJH, string dirSectionData) { string filePath = Path.Combine(dirSectionData, sJH, fileNameSectionPerforation); cIOinputWellPerforation cSelectInputPerforation = new cIOinputWellPerforation(); cSelectInputPerforation.selectSectionDrawData2File(sJH, filePath); }
private void btnSelectPerforatedWellByContition_Click(object sender, EventArgs e) { ltStrSelectedJH.Clear(); updateSelectedXCMList(); updateSelectedYM(); cIOinputWellPerforation cTest = new cIOinputWellPerforation(); if (File.Exists(cProjectManager.filePathPerforationDic)) { foreach (string sItemXCM in ltStrSelectedLayer) { //List<string> ltStrJHPerfotatedByLayer = cTest.selectJHFromDicPerforationByYMLayerName(sItemXCM, sSelectedYYYYMM); //foreach (string sJHtemp in ltStrJHPerfotatedByLayer) //{ //if(!ltStrSelectedJH.Contains(sJHtemp)) ltStrSelectedJH.Add(sJHtemp); //} } for (int i = 0; i < lbxJH.Items.Count; i++) { lbxJH.SetSelected(i, false); if (ltStrSelectedJH.Contains(lbxJH.Items[i].ToString())) { lbxJH.SetSelected(i, true); } } } else { MessageBox.Show("请先计算射孔数据字典,或者手动选择。"); } }