| Core/GameEngine/Model/Config/AuctionConfig.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| Core/GameEngine/Model/Config/AuctionConfig.cs.meta | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Auction/AuctionHelpModel.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Auction/AuctionHouseWin.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Auction/AuctionInquiry.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Auction/FamilyAuctionWin.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/Auction/FullServiceAuctionWin.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
Core/GameEngine/Model/Config/AuctionConfig.cs
@@ -1,6 +1,6 @@ //-------------------------------------------------------- // [Author]: Fish // [ Date ]: Friday, March 01, 2019 // [ Date ]: Wednesday, March 06, 2019 //-------------------------------------------------------- using System.Collections.Generic; @@ -14,16 +14,12 @@ { public readonly int Id; public readonly int Type; public readonly int Sort; public readonly int TypeId; public readonly int[] ChooseItem1; public readonly int[] ChooseItem2; public readonly string TypeName; public readonly string[] ChooseItemName1; public readonly string[] ChooseItemName2; public readonly int[] QueryType; public readonly int[] QueryTypeJob1; public readonly int[] QueryTypeJob2; public readonly string[] ChooseItemName2; public AuctionConfig() { @@ -37,50 +33,27 @@ int.TryParse(tables[0],out Id); int.TryParse(tables[1],out Type); int.TryParse(tables[1],out TypeId); int.TryParse(tables[2],out Sort); string[] ChooseItem1StringArray = tables[3].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); string[] ChooseItem1StringArray = tables[2].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); ChooseItem1 = new int[ChooseItem1StringArray.Length]; for (int i=0;i<ChooseItem1StringArray.Length;i++) { int.TryParse(ChooseItem1StringArray[i],out ChooseItem1[i]); } string[] ChooseItem2StringArray = tables[4].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); string[] ChooseItem2StringArray = tables[3].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); ChooseItem2 = new int[ChooseItem2StringArray.Length]; for (int i=0;i<ChooseItem2StringArray.Length;i++) { int.TryParse(ChooseItem2StringArray[i],out ChooseItem2[i]); } TypeName = tables[5]; TypeName = tables[4]; ChooseItemName1 = tables[6].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); ChooseItemName1 = tables[5].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); ChooseItemName2 = tables[7].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); string[] QueryTypeStringArray = tables[8].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); QueryType = new int[QueryTypeStringArray.Length]; for (int i=0;i<QueryTypeStringArray.Length;i++) { int.TryParse(QueryTypeStringArray[i],out QueryType[i]); } string[] QueryTypeJob1StringArray = tables[9].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); QueryTypeJob1 = new int[QueryTypeJob1StringArray.Length]; for (int i=0;i<QueryTypeJob1StringArray.Length;i++) { int.TryParse(QueryTypeJob1StringArray[i],out QueryTypeJob1[i]); } string[] QueryTypeJob2StringArray = tables[10].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); QueryTypeJob2 = new int[QueryTypeJob2StringArray.Length]; for (int i=0;i<QueryTypeJob2StringArray.Length;i++) { int.TryParse(QueryTypeJob2StringArray[i],out QueryTypeJob2[i]); } ChooseItemName2 = tables[6].Trim().Split(StringUtility.splitSeparator,StringSplitOptions.RemoveEmptyEntries); } catch (Exception ex) { Core/GameEngine/Model/Config/AuctionConfig.cs.meta
@@ -1,6 +1,6 @@ fileFormatVersion: 2 guid: e6f06d336e3a99c4b9fc6562cabf0cea timeCreated: 1551409601 timeCreated: 1551842328 licenseType: Pro MonoImporter: serializedVersion: 2 System/Auction/AuctionHelpModel.cs
@@ -21,8 +21,7 @@ public class AuctionHelpModel : Model, IBeforePlayerDataInitialize, IPlayerLoginOk { public List<AuctionConfig> FullServiceAuctionList = new List<AuctionConfig>();//全服拍卖列表 public List<AuctionConfig> FamilyAuctionList = new List<AuctionConfig>();//仙盟拍卖列表 public Dictionary<int, AuctionConfigClass> FullServiceAuctionDic = new Dictionary<int, AuctionConfigClass>();//全服拍卖记录 public Dictionary<int, AuctionConfigClass> FullServiceAuctionDic = new Dictionary<int, AuctionConfigClass>();//全服拍卖选择记录 public List<AuctionItemConfig> AuctionItemList = new List<AuctionItemConfig>();//拍卖物品表 AuctionInquiryModel model { get { return ModelCenter.Instance.GetModel<AuctionInquiryModel>(); } } private bool wait = true; @@ -56,124 +55,31 @@ GlobalTimeEvent.Instance.secondEvent += secondEvent; } public override void UnInit() { } private void GetAuctionList()//获取拍卖列表 private void GetAuctionList()//全服获取拍卖列表 { FullServiceAuctionList.Clear(); FamilyAuctionList.Clear(); FullServiceAuctionDic.Clear(); var config = AuctionConfig.GetValues(); foreach (var value in config) { if (value.Type == 1) FullServiceAuctionList.Add(value); if (!FullServiceAuctionDic.ContainsKey(value.Id)) { FullServiceAuctionList.Add(value); if (!FullServiceAuctionDic.ContainsKey(value.Sort)) { AuctionConfigClass AuctionConfig = new AuctionConfigClass(); AuctionConfig.JobEntry = 0; AuctionConfig.TypeEntry = 0; AuctionConfig.JobTipBool = value.ChooseItem1 != null && value.ChooseItem1.Length > 0; AuctionConfig.TypeTipBool = value.ChooseItem2 != null && value.ChooseItem2.Length > 0; AuctionConfig.Config = value; FullServiceAuctionDic.Add(value.Sort, AuctionConfig); } AuctionConfigClass AuctionConfig = new AuctionConfigClass(); AuctionConfig.JobEntry = 0; AuctionConfig.TypeEntry = 0; AuctionConfig.JobTipBool = value.ChooseItem1 != null && value.ChooseItem1.Length > 0; AuctionConfig.TypeTipBool = value.ChooseItem2 != null && value.ChooseItem2.Length > 0; AuctionConfig.Config = value; FullServiceAuctionDic.Add(value.Id, AuctionConfig); } else if (value.Type == 2) { FamilyAuctionList.Add(value); } } } } public int GetConfigIndex(int job, int[] typeIdlist) { int index = 0; if (!FullServiceAuctionDic.ContainsKey(selectedGenreNow)) { return index; } var fullServiceAuction = FullServiceAuctionDic[selectedGenreNow]; if (job == 0 && typeIdlist.Length >= 3) { index = 0; return index; } if (fullServiceAuction.JobTipBool && fullServiceAuction.TypeTipBool) { if (job == 0 && typeIdlist.Length == 2) { for (int i = 0; i < fullServiceAuction.Config.QueryTypeJob1.Length; i++) { int type1 = fullServiceAuction.Config.QueryTypeJob1[i]; for (int j = 0; job < typeIdlist.Length; j++) { int type2 = typeIdlist[j]; if (type1 == type2) { index = i; } } } } else { if (job == 1) { for (int i = 0; i < fullServiceAuction.Config.QueryTypeJob1.Length; i++) { int type1 = fullServiceAuction.Config.QueryTypeJob1[i]; for (int j = 0; job < typeIdlist.Length; j++) { int type2 = typeIdlist[j]; if (type1 == type2) { index = i; } } } } else if (job == 2) { for (int i = 0; i < fullServiceAuction.Config.QueryTypeJob2.Length; i++) { int type1 = fullServiceAuction.Config.QueryTypeJob2[i]; for (int j = 0; job < typeIdlist.Length; j++) { int type2 = typeIdlist[j]; if (type1 == type2) { index = i; } } } } } return index; } if (!fullServiceAuction.JobTipBool) { for (int i = 0; i < fullServiceAuction.Config.QueryType.Length; i++) { int type1 = fullServiceAuction.Config.QueryType[i]; for (int j = 0; job < typeIdlist.Length; j++) { int type2 = typeIdlist[j]; if (type1 == type2) { index = i; } } } return index; } return index; } private void secondEvent() System/Auction/AuctionHouseWin.cs
@@ -25,6 +25,7 @@ [SerializeField] FunctionButton m_MyFocus;//我的关注 [SerializeField] Button m_AttentionButton;//我的关注商品 [SerializeField] Button m_TransactionRecordButton;//成交记录 [SerializeField] Text m_MoneyText; protected override void BindController() { AuctionInquiry.Instance.SendQueryAttentionAuctionItem();//查询拍卖行的关注物品 @@ -46,7 +47,7 @@ protected override void OnPreOpen() { m_MoneyText.text = UIHelper.GetMoneyCnt(1).ToString(); } protected override void OnActived() { @@ -54,8 +55,8 @@ m_FuncBtnGroup.TriggerByOrder(functionOrder); } protected override void OnAfterOpen() { { PlayerDatas.Instance.PlayerDataRefreshInfoEvent += Updatefighting; } protected override void OnPreClose() @@ -68,9 +69,19 @@ } protected override void OnAfterClose() { { PlayerDatas.Instance.PlayerDataRefreshInfoEvent -= Updatefighting; } #endregion private void Updatefighting(PlayerDataRefresh info) { if (info == PlayerDataRefresh.Gold) { m_MoneyText.text = UIHelper.GetMoneyCnt(1).ToString(); } } private void OnClickClose() { CloseImmediately(); System/Auction/AuctionInquiry.cs
@@ -25,95 +25,95 @@ public class AuctionInquiry : Singleton<AuctionInquiry> { AuctionHelpModel auctionHelpModel { get { return ModelCenter.Instance.GetModel<AuctionHelpModel>(); } } public void SendQueryAuction(string itemGUID,int queryDir,int queryCount=10)//拍卖行查询拍卖中的物品(物品GUID,查询方向,查询个数) { var selectedGenreNow = auctionHelpModel.SelectedGenreNow; if (!auctionHelpModel.FullServiceAuctionDic.ContainsKey(selectedGenreNow)) { DebugEx.LogError("查询类型失效"); return; } var auctionConfig = auctionHelpModel.FullServiceAuctionDic[selectedGenreNow]; QueryAuctionItem queryAuctionItem = new QueryAuctionItem(); queryAuctionItem.ItemTypeList = new List<uint>(); queryAuctionItem.SpecItemIDList = new List<uint>(); if (auctionConfig.JobTipBool && auctionConfig.TypeTipBool) { queryAuctionItem.Job = auctionConfig.JobEntry; if (auctionConfig.JobEntry == 0 && auctionConfig.TypeEntry == 0)//查询所有类型 { for (int i = 0; i < auctionConfig.Config.QueryType.Length; i++) { queryAuctionItem.ItemTypeList.Add((uint)auctionConfig.Config.QueryType[i]); } } else if (auctionConfig.JobEntry != 0 && auctionConfig.TypeEntry == 0) { if (auctionConfig.JobEntry == 1)//全部龙魂类型 { for (int i = 0; i < auctionConfig.Config.QueryTypeJob1.Length; i++) { queryAuctionItem.ItemTypeList.Add((uint)auctionConfig.Config.QueryTypeJob1[i]); } } else if (auctionConfig.JobEntry == 2)//全部灵瑶类型 { for (int i = 0; i < auctionConfig.Config.QueryTypeJob2.Length; i++) { queryAuctionItem.ItemTypeList.Add((uint)auctionConfig.Config.QueryTypeJob2[i]); } } } else if (auctionConfig.JobEntry == 0 && auctionConfig.TypeEntry != 0)//不分职业 选择某一类别 { var type1 = auctionConfig.Config.QueryTypeJob1[auctionConfig.TypeEntry]; var type2 = auctionConfig.Config.QueryTypeJob2[auctionConfig.TypeEntry]; queryAuctionItem.ItemTypeList.Add((uint)type1); queryAuctionItem.ItemTypeList.Add((uint)type2); } else if (auctionConfig.JobEntry != 0 && auctionConfig.TypeEntry != 0) { if (auctionConfig.JobEntry == 1)//龙魂某种类型 { var type = auctionConfig.Config.QueryTypeJob1[auctionConfig.TypeEntry]; queryAuctionItem.ItemTypeList.Add((uint)type); } else if (auctionConfig.JobEntry == 2)//灵瑶某种类型 { var type = auctionConfig.Config.QueryTypeJob2[auctionConfig.TypeEntry]; queryAuctionItem.ItemTypeList.Add((uint)type); } } } else if (!auctionConfig.JobTipBool && auctionConfig.TypeTipBool) { queryAuctionItem.Job = 0; if (auctionConfig.TypeEntry == 0) { for (int i = 0; i < auctionConfig.Config.QueryType.Length; i++) { queryAuctionItem.ItemTypeList.Add((uint)auctionConfig.Config.QueryType[i]); } } else { var type = auctionConfig.Config.QueryType[auctionConfig.TypeEntry]; queryAuctionItem.ItemTypeList.Add((uint)type); } } else if (!auctionConfig.JobTipBool && !auctionConfig.TypeTipBool) { queryAuctionItem.Job = 0; for (int i = 0; i < auctionConfig.Config.QueryType.Length; i++) { queryAuctionItem.ItemTypeList.Add((uint)auctionConfig.Config.QueryType[i]); } } queryAuctionItem.FromItemGUID = itemGUID; queryAuctionItem.QueryDir = queryDir; queryAuctionItem.QueryCount = queryCount; SendQueryAuctionItem(queryAuctionItem); } //public void SendQueryAuction(string itemGUID,int queryDir,int queryCount=10)//拍卖行查询拍卖中的物品(物品GUID,查询方向,查询个数) //{ // var selectedGenreNow = auctionHelpModel.SelectedGenreNow; // if (!auctionHelpModel.FullServiceAuctionDic.ContainsKey(selectedGenreNow)) // { // DebugEx.LogError("查询类型失效"); // return; // } // var auctionConfig = auctionHelpModel.FullServiceAuctionDic[selectedGenreNow]; // QueryAuctionItem queryAuctionItem = new QueryAuctionItem(); // queryAuctionItem.ItemTypeList = new List<uint>(); // queryAuctionItem.SpecItemIDList = new List<uint>(); // if (auctionConfig.JobTipBool && auctionConfig.TypeTipBool) // { // queryAuctionItem.Job = auctionConfig.JobEntry; // if (auctionConfig.JobEntry == 0 && auctionConfig.TypeEntry == 0)//查询所有类型 // { // for (int i = 0; i < auctionConfig.Config.QueryType.Length; i++) // { // queryAuctionItem.ItemTypeList.Add((uint)auctionConfig.Config.QueryType[i]); // } // } // else if (auctionConfig.JobEntry != 0 && auctionConfig.TypeEntry == 0) // { // if (auctionConfig.JobEntry == 1)//全部龙魂类型 // { // for (int i = 0; i < auctionConfig.Config.QueryTypeJob1.Length; i++) // { // queryAuctionItem.ItemTypeList.Add((uint)auctionConfig.Config.QueryTypeJob1[i]); // } // } // else if (auctionConfig.JobEntry == 2)//全部灵瑶类型 // { // for (int i = 0; i < auctionConfig.Config.QueryTypeJob2.Length; i++) // { // queryAuctionItem.ItemTypeList.Add((uint)auctionConfig.Config.QueryTypeJob2[i]); // } // } // } // else if (auctionConfig.JobEntry == 0 && auctionConfig.TypeEntry != 0)//不分职业 选择某一类别 // { // var type1 = auctionConfig.Config.QueryTypeJob1[auctionConfig.TypeEntry]; // var type2 = auctionConfig.Config.QueryTypeJob2[auctionConfig.TypeEntry]; // queryAuctionItem.ItemTypeList.Add((uint)type1); // queryAuctionItem.ItemTypeList.Add((uint)type2); // } // else if (auctionConfig.JobEntry != 0 && auctionConfig.TypeEntry != 0) // { // if (auctionConfig.JobEntry == 1)//龙魂某种类型 // { // var type = auctionConfig.Config.QueryTypeJob1[auctionConfig.TypeEntry]; // queryAuctionItem.ItemTypeList.Add((uint)type); // } // else if (auctionConfig.JobEntry == 2)//灵瑶某种类型 // { // var type = auctionConfig.Config.QueryTypeJob2[auctionConfig.TypeEntry]; // queryAuctionItem.ItemTypeList.Add((uint)type); // } // } // } // else if (!auctionConfig.JobTipBool && auctionConfig.TypeTipBool) // { // queryAuctionItem.Job = 0; // if (auctionConfig.TypeEntry == 0) // { // for (int i = 0; i < auctionConfig.Config.QueryType.Length; i++) // { // queryAuctionItem.ItemTypeList.Add((uint)auctionConfig.Config.QueryType[i]); // } // } // else // { // var type = auctionConfig.Config.QueryType[auctionConfig.TypeEntry]; // queryAuctionItem.ItemTypeList.Add((uint)type); // } // } // else if (!auctionConfig.JobTipBool && !auctionConfig.TypeTipBool) // { // queryAuctionItem.Job = 0; // for (int i = 0; i < auctionConfig.Config.QueryType.Length; i++) // { // queryAuctionItem.ItemTypeList.Add((uint)auctionConfig.Config.QueryType[i]); // } // } // queryAuctionItem.FromItemGUID = itemGUID; // queryAuctionItem.QueryDir = queryDir; // queryAuctionItem.QueryCount = queryCount; // SendQueryAuctionItem(queryAuctionItem); //} private void SendQueryAuctionItem(QueryAuctionItem queryAuctionItem)//拍卖行查询拍卖中的物品 { System/Auction/FamilyAuctionWin.cs
@@ -14,7 +14,6 @@ public class FamilyAuctionWin : Window { [SerializeField] ScrollerController m_ScrollerController; [SerializeField] ScrollerController m_ScrollerControllerItem; AuctionInquiryModel model { get { return ModelCenter.Instance.GetModel<AuctionInquiryModel>(); } } AuctionHelpModel auctionHelpModel { get { return ModelCenter.Instance.GetModel<AuctionHelpModel>(); } } @@ -22,7 +21,6 @@ #region Built-in protected override void BindController() { m_ScrollerController.OnRefreshCell += OnRefreshGridCell; m_ScrollerControllerItem.OnRefreshCell += OnRefreshGridCellItem; } @@ -34,7 +32,6 @@ { GetFamilyAuctionItemList(); ListSotr(); OnCreateGridCell(m_ScrollerController); OnCreateGridCellItem(m_ScrollerControllerItem); } @@ -70,37 +67,7 @@ private void RefreshAuctionItemUpdate() { m_ScrollerControllerItem.m_Scorller.RefreshActiveCellViews();//刷新可见 } private void OnCreateGridCell(ScrollerController gridCtrl) { gridCtrl.Refresh(); for (int i = 0; i < auctionHelpModel.FamilyAuctionList.Count; i++) { gridCtrl.AddCell(ScrollerDataType.Header, i); } gridCtrl.Restart(); } private void OnRefreshGridCell(ScrollerDataType type, CellView cell) { var index = cell.index; if (index >= auctionHelpModel.FamilyAuctionList.Count) { return; } var fullServiceAuction = auctionHelpModel.FamilyAuctionList[index]; Text textName = cell.transform.Find("Text").GetComponent<Text>(); GameObject selected = cell.transform.Find("Selected").gameObject; ButtonEx button = cell.GetComponent<ButtonEx>(); textName.text = fullServiceAuction.TypeName; if (auctionHelpModel.FamilyAuctionList.Count == 1) { selected.SetActive(true); } button.SetListener(() => { // m_ScrollerController.m_Scorller.RefreshActiveCellViews();//刷新可见 }); } } private void OnCreateGridCellItem(ScrollerController gridCtrl) { gridCtrl.Refresh(); System/Auction/FullServiceAuctionWin.cs
@@ -110,61 +110,61 @@ } private void OnRefreshGridCell(ScrollerDataType type, CellView cell) { var index = cell.index; if (index >= auctionHelpModel.FullServiceAuctionList.Count) { return; } var fullServiceAuction = auctionHelpModel.FullServiceAuctionList[index]; Text textName = cell.transform.Find("Text").GetComponent<Text>(); GameObject selected = cell.transform.Find("Selected").gameObject; ButtonEx button = cell.GetComponent<ButtonEx>(); textName.text = fullServiceAuction.TypeName; if (fullServiceAuction.Sort == auctionHelpModel.SelectedGenreNow) { selected.SetActive(true); } else { selected.SetActive(false); } button.SetListener(() => { if (fullServiceAuction.Sort != auctionHelpModel.SelectedGenreNow) { CloseTip(); auctionHelpModel.SelectedGenreNow = fullServiceAuction.Sort; Reset(); m_ScrollerController.m_Scorller.RefreshActiveCellViews();//刷新可见 OnCreateGridLineCellJob(m_ScrollerControllerJob); OnCreateGridLineCellType(m_ScrollerControllerType); SetTipText(); } }); //var index = cell.index; //if (index >= auctionHelpModel.FullServiceAuctionList.Count) //{ // return; //} //var fullServiceAuction = auctionHelpModel.FullServiceAuctionList[index]; //Text textName = cell.transform.Find("Text").GetComponent<Text>(); //GameObject selected = cell.transform.Find("Selected").gameObject; //ButtonEx button = cell.GetComponent<ButtonEx>(); //textName.text = fullServiceAuction.TypeName; //if (fullServiceAuction.Sort == auctionHelpModel.SelectedGenreNow) //{ // selected.SetActive(true); //} //else //{ // selected.SetActive(false); //} //button.SetListener(() => //{ // if (fullServiceAuction.Sort != auctionHelpModel.SelectedGenreNow) // { // CloseTip(); // auctionHelpModel.SelectedGenreNow = fullServiceAuction.Sort; // Reset(); // m_ScrollerController.m_Scorller.RefreshActiveCellViews();//刷新可见 // OnCreateGridLineCellJob(m_ScrollerControllerJob); // OnCreateGridLineCellType(m_ScrollerControllerType); // SetTipText(); // } //}); } private void OnCreateGridLineCellJob(ScrollerController gridCtrl) { var index = 0; index = auctionHelpModel.FullServiceAuctionList.FindIndex((x) => { return x.Sort == auctionHelpModel.SelectedGenreNow; }); if (index != -1) { var fullServiceAuction = auctionHelpModel.FullServiceAuctionList[index]; if (fullServiceAuction.ChooseItemName1 != null) { gridCtrl.Refresh(); for (int i = 0; i < fullServiceAuction.ChooseItemName1.Length; i++) { gridCtrl.AddCell(ScrollerDataType.Header, i); } gridCtrl.Restart(); } //var index = 0; //index = auctionHelpModel.FullServiceAuctionList.FindIndex((x) => //{ // return x.Sort == auctionHelpModel.SelectedGenreNow; //}); //if (index != -1) //{ // var fullServiceAuction = auctionHelpModel.FullServiceAuctionList[index]; // if (fullServiceAuction.ChooseItemName1 != null) // { // gridCtrl.Refresh(); // for (int i = 0; i < fullServiceAuction.ChooseItemName1.Length; i++) // { // gridCtrl.AddCell(ScrollerDataType.Header, i); // } // gridCtrl.Restart(); // } } //} } private void OnRefreshGridCellJob(ScrollerDataType type, CellView cell) { @@ -191,24 +191,24 @@ private void OnCreateGridLineCellType(ScrollerController gridCtrl) { var index = 0; index = auctionHelpModel.FullServiceAuctionList.FindIndex((x) => { return x.Sort == auctionHelpModel.SelectedGenreNow; }); if (index != -1) { var fullServiceAuction = auctionHelpModel.FullServiceAuctionList[index]; if (fullServiceAuction.ChooseItemName2 != null) { gridCtrl.Refresh(); for (int i = 0; i < fullServiceAuction.ChooseItemName2.Length; i++) { gridCtrl.AddCell(ScrollerDataType.Header, i); } gridCtrl.Restart(); } } //var index = 0; //index = auctionHelpModel.FullServiceAuctionList.FindIndex((x) => //{ // return x.Sort == auctionHelpModel.SelectedGenreNow; //}); //if (index != -1) //{ // var fullServiceAuction = auctionHelpModel.FullServiceAuctionList[index]; // if (fullServiceAuction.ChooseItemName2 != null) // { // gridCtrl.Refresh(); // for (int i = 0; i < fullServiceAuction.ChooseItemName2.Length; i++) // { // gridCtrl.AddCell(ScrollerDataType.Header, i); // } // gridCtrl.Restart(); // } //} } private void OnRefreshGridCellType(ScrollerDataType type, CellView cell) @@ -251,15 +251,15 @@ private void Reset()//重置查询 { model.FullServiceAuctionList.Clear(); var index = auctionHelpModel.SelectedGenreNow; if (!auctionHelpModel.FullServiceAuctionDic.ContainsKey(index)) { DebugEx.LogError("数据请求包暂未发送成功"); return; } var fullServiceAuction = auctionHelpModel.FullServiceAuctionDic[index]; AuctionInquiry.Instance.SendQueryAuction(string.Empty,1); //model.FullServiceAuctionList.Clear(); //var index = auctionHelpModel.SelectedGenreNow; //if (!auctionHelpModel.FullServiceAuctionDic.ContainsKey(index)) //{ // DebugEx.LogError("数据请求包暂未发送成功"); // return; //} //var fullServiceAuction = auctionHelpModel.FullServiceAuctionDic[index]; //AuctionInquiry.Instance.SendQueryAuction(string.Empty,1); } private void CloseTip() {