public void _runInit() { StatusService statusService_ = __singleton <StatusService> ._instance(); AccountService accountService_ = __singleton <AccountService> ._instance(); IDictionary <uint, AccountMgr> accountMgrs_ = accountService_._getAccountMgrs(); uint statusServiceId_ = statusService_._getId(); foreach (StatusOptionB i in mStatusOptionBs) { uint accountMgrId_ = i._getAccountMgrId(); if (accountMgrs_.ContainsKey(accountMgrId_)) { AccountMgr accountMgr_ = accountMgrs_[accountMgrId_]; StatusOption statusOption_ = accountMgr_._getProperty <StatusOption>(statusServiceId_); statusOption_._setTableId(i._getTableId()); } else { LogService logService_ = __singleton <LogService> ._instance(); logService_._logError(string.Format(@"StatusOptionSelectB _initStatusOption:{0}", accountMgrId_)); } } }
public void _runInit() { StatusService statusService_ = __singleton <StatusService> ._instance(); AccountService accountService_ = __singleton <AccountService> ._instance(); IDictionary <uint, AccountMgr> accountMgrs_ = accountService_._getAccountMgrs(); uint statusServiceId_ = statusService_._getId(); foreach (KeyValuePair <uint, AccountMgr> i in accountMgrs_) { AccountMgr accountMgr_ = i.Value; uint accountMgrId_ = i.Key; StatusOption statusOption_ = accountMgr_._getProperty <StatusOption>(statusServiceId_); StatusOptionB statusOptionB_ = new StatusOptionB(accountMgrId_, statusOption_); mStatusOptionBs.Add(statusOptionB_); } }