private void ServiceUpdateInvoke(object sender, UnionPsServiceArgs e) { ServiceEventDelegate serviceEvent; NetWorkType key = e.PsServiceList[0].Technology; if (this.m_netTypeTnManagerDic.ContainsKey(key)) { serviceEvent = new ServiceEventDelegate(this.m_netTypeTnManagerDic[key].UpdateTreeNode); } else { serviceEvent = new ServiceEventDelegate(this.m_netTypeTnManagerDic[0].UpdateTreeNode); } this.UpdatePsServiceTreeNode(e, serviceEvent); }
private void UpdatePsServiceTreeNode(UnionPsServiceArgs e, ServiceEventDelegate serviceEvent) { try { if (CS9__CachedAnonymousMethodDelegate3 == null) { CS9__CachedAnonymousMethodDelegate3 = delegate (UnionPsService uPsService) { return uPsService; }; } List<IModel> models = e.PsServiceList.ConvertAll<IModel>(CS9__CachedAnonymousMethodDelegate3); serviceEvent(models); } catch (Exception exception) { WriteLog.Logger.Error(exception.StackTrace); } }
private void m_ServiceTreeNodeModel_DeletePsServiceEvent(object sender, UnionPsServiceArgs e) { ServiceEventDelegate serviceEvent; if (!this.m_NetWorkTypeList.Contains(e.PsServiceList[0].Technology)) { serviceEvent = new ServiceEventDelegate(this.m_netTypeTnManagerDic[0].DelTreeNode); } else { serviceEvent = new ServiceEventDelegate(this.m_netTypeTnManagerDic[e.PsServiceList[0].Technology].DelTreeNode); } this.UpdatePsServiceTreeNode(e, serviceEvent); }