private void btnAv_Click(object sender, EventArgs e) { SaveConfig(); m_pool.Clear(); string av = EagleString.CommandCreate.Create_AV_String(m_av_from, m_av_to, m_av_date, 0, m_av_direct, m_av_carrier); string cmd = m_pool.HandleCommand(av); m_socket.SendCommand(cmd, EagleProtocal.TypeOfCommand.Multi); }
private void SetLV() { if (true) { lv.Items.Clear();//这里可根据用户选择是否清空 lv2.Items.Clear(); } m_show_noseat = (EagleString.EagleFileIO.ValueOf("EASYFORM_DISPLAY_NO_SEAT_BUNK") == "1"); m_show_specbunk = (EagleString.EagleFileIO.ValueOf("EASYFORM_DISPLAY_SPEC_BUNK") == "1"); int base_id = 0; for (int i = 0; i < ls_av.Count; ++i) { try { EagleString.AvResult ar = ls_av[i]; ar.BASE_ID = base_id; ar.DISPLAY_SEAT_AMOUNT = true; ar.ToListView(lv, m_show_noseat, EagleString.TO_LIST_WAYS.ALL, true); ar.DISPLAY_SEAT_AMOUNT = false; ar.ToListView(lv2, m_show_noseat, EagleString.TO_LIST_WAYS.ALL, true); base_id += ar.si.Length; } catch { } } if (m_show_profit) { new System.Threading.Thread( new System.Threading.ThreadStart(SetLvProfit)).Start(); } int price = EagleString.EagleFileIO.PriceOf(ls_av[0].CityPair); if (price != 0) { InsertPrice(price, lv); InsertPrice(price, lv2); } else { m_pool.Clear(); string cmd = m_pool.HandleCommand("fd:" + ls_av[0].CityPair); m_socket.SendCommand(cmd, EagleProtocal.TypeOfCommand.Multi); } }