void _Packet(ScChargeDrawGrowthFund msg) { if (msg.result == 0) { var grow = Array.Find(m_chargeItemList.growthFund, item => item.id == msg.drawId); grow.draw = true; } DispatchModuleEvent(ResponseGetGrowthFund, msg); }
private void ResponseGetGrowthFund(ScChargeDrawGrowthFund msg) { if (msg.result != 0) { moduleGlobal.ShowMessage(9303, msg.result); return; } var list = new List <PGrowthFund>(moduleCharge.GetGrowthFund()); list.Sort(SortHandle); dataSource.SetItems(list); var fund = Array.Find(moduleCharge.GetGrowthFund(), item => item.id == msg.drawId); if (fund != null) { Window_ItemTip.Show(ConfigText.GetDefalutString(TextForMatType.RechargeUIText, 10), fund.reward); } }