private void UpdateEvent(object sender, UnionCsServiceArgs e) { this.ServiceUpdateInvoke(sender, e); }
private void UpdateCsServiceTreeNode(UnionCsServiceArgs e, ServiceEventDelegate serviceEvent) { try { if (CS9__CachedAnonymousMethodDelegate1 == null) { CS9__CachedAnonymousMethodDelegate1 = delegate (UnionCsService uCsService) { return uCsService; }; } List<IModel> models = e.CsServiceList.ConvertAll<IModel>(CS9__CachedAnonymousMethodDelegate1); serviceEvent(models); } catch (Exception exception) { WriteLog.Logger.Error(exception.StackTrace); } }
private void ServiceUpdateInvoke(object sender, UnionCsServiceArgs e) { ServiceEventDelegate serviceEvent; NetWorkType key = e.CsServiceList[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.UpdateCsServiceTreeNode(e, serviceEvent); }
private void m_ServiceTreeNodeModel_ModifyCsServiceEvent(object sender, UnionCsServiceArgs e) { this.UpdateEvent(sender, e); }
private void m_ServiceTreeNodeModel_DeleteCsServiceEvent(object sender, UnionCsServiceArgs e) { ServiceEventDelegate serviceEvent; if (!this.m_NetWorkTypeList.Contains(e.CsServiceList[0].Technology)) { serviceEvent = new ServiceEventDelegate(this.m_netTypeTnManagerDic[0].DelTreeNode); } else { serviceEvent = new ServiceEventDelegate(this.m_netTypeTnManagerDic[e.CsServiceList[0].Technology].DelTreeNode); } this.UpdateCsServiceTreeNode(e, serviceEvent); }
private void InitializeTreeNode() { this.m_ParentNode.SelectedImageKey = TrafficModelResource.TRAFFICMODEL_FOLDER; this.m_ParentNode.ImageKey = TrafficModelResource.TRAFFICMODEL_FOLDER; foreach (NetWorkType type in this.m_NetWorkTypeList) { this.CreateNodeAndNodeManager(type.ToString(), type); } if (this.m_NetWorkTypeList.Count > 1) { this.CreateNodeAndNodeManager("UnionService", 0); } foreach (NetWorkType type in this.m_NetWorkTypeList) { List<UnionPsService> uPsServiceList = this.m_ServiceTreeNodeCtrl.GetPsServiceListByNetType(type); List<UnionCsService> unionCsServiceList = this.m_ServiceTreeNodeCtrl.GetCsServiceListByNetType(type); if (unionCsServiceList.Count != 0) { UnionCsServiceArgs e = new UnionCsServiceArgs(unionCsServiceList); this.m_ServiceTreeNodeModel_AddCsServiceEvent(this, e); } if (uPsServiceList.Count != 0) { UnionPsServiceArgs args2 = new UnionPsServiceArgs(uPsServiceList); this.m_ServiceTreeNodeModel_AddPsServiceEvent(this, args2); } } }