public void RefreshRecordList() { if (controllers.ContainsKey(ChildIndex.PurchaseRecordController)) { PurchaseRecordController prc = controllers[ChildIndex.PurchaseRecordController].GetComponent <PurchaseRecordController>(); if (prc != null) { prc.FreshUI(); } } if (controllers.ContainsKey(ChildIndex.PurchaseController)) { PurchaseController pc = controllers[ChildIndex.PurchaseController].GetComponent <PurchaseController>(); if (pc != null) { pc.UpdateFirst(); pc.RefreshUI(false); } } }