private void HandleFD() { FdResult fdresult = new FdResult(dataHandler.COMMANDRESULT); if (easyMain != null && tcMain.SelectedTab == tpEasy) { easyMain.AddResult(fdresult); } if (fdresult.PRICE > 0) { string[] citypair = EagleString.BaseFunc.CITYPAIR_ALLY(fdresult.CITYPAIR).ToArray(); System.Collections.Hashtable ht = new System.Collections.Hashtable(); for (int i = 0; i < citypair.Length; ++i) { ht.Add(citypair[i], fdresult.PRICE.ToString() + "," + fdresult.DISTANCE.ToString()); ht.Add(citypair[i].Substring(3) + citypair[i].Substring(0, 3), fdresult.PRICE.ToString() + "," + fdresult.DISTANCE.ToString()); } EagleString.EagleFileIO.WiteHashTableToEagleDotTxt(ht, "", EagleString.EagleFileIO.File_Price); } //PriceFileSet(ls_city, ref temp_pos1, ref temp_pos2); }
public void AddResult(FdResult fdres) { lvPanel.AddResult(fdres); }