Example #1
0
 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);
     }
 }
Example #2
0
 private void UpdateEvent(object sender, UnionPsServiceArgs e)
 {
     this.ServiceUpdateInvoke(sender, e);
 }
Example #3
0
 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);
 }
Example #4
0
 private void m_ServiceTreeNodeModel_ModifyPsServiceEvent(object sender, UnionPsServiceArgs e)
 {
     this.UpdateEvent(sender, e);
 }
Example #5
0
 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);
 }
Example #6
0
 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);
         }
     }
 }