public void AddChargeItemResult(bool success, int index, int objId, CSPPCoal entity) { if (entity == m_PPCoal) { CSUI_ChargingGrid cg = m_ChargingGrids[index]; ItemObject itemObj = ItemMgr.Instance.Get(objId); if (success) { cg.SetItemUI(itemObj); if (!cg.m_bUseMsgBox) { CSUI_MainWndCtrl.ShowStatusBar(CSUtils.GetNoFormatString(UIMsgBoxInfo.mStartToCharge.GetString(), itemObj.protoData.GetName())); } } else { if (!cg.m_bUseMsgBox) { CSUI_MainWndCtrl.ShowStatusBar(CSUtils.GetNoFormatString(UIMsgBoxInfo.mNotToBeCharged.GetString(), itemObj.protoData.GetName()), Color.red); } } } }