Exemplo n.º 1
0
 private void KaVdceSrdb([In] Instrument obj0)
 {
     if (this.IJOFd6RnLu.Pushed)
     {
         SecurityTypeNode securityTypeNode1 = (SecurityTypeNode)null;
         foreach (SecurityTypeNode securityTypeNode2 in this.ahMFxJ76rT.Nodes[0].Nodes)
         {
             if (securityTypeNode2.SecurityType == obj0.SecurityType)
             {
                 securityTypeNode1 = securityTypeNode2;
                 break;
             }
         }
         if (securityTypeNode1 == null)
         {
             securityTypeNode1 = new SecurityTypeNode(obj0.SecurityType);
             this.ahMFxJ76rT.Nodes[0].Nodes.Add((TreeNode)securityTypeNode1);
         }
         securityTypeNode1.Nodes.Add((TreeNode) new InstrumentNode(obj0));
     }
     else
     {
         this.ahMFxJ76rT.Nodes[0].Nodes.Add((TreeNode) new InstrumentNode(obj0));
     }
 }
Exemplo n.º 2
0
 private void KaVdceSrdb([In] Instrument obj0)
 {
   if (this.IJOFd6RnLu.Pushed)
   {
     SecurityTypeNode securityTypeNode1 = (SecurityTypeNode) null;
     foreach (SecurityTypeNode securityTypeNode2 in this.ahMFxJ76rT.Nodes[0].Nodes)
     {
       if (securityTypeNode2.SecurityType == obj0.SecurityType)
       {
         securityTypeNode1 = securityTypeNode2;
         break;
       }
     }
     if (securityTypeNode1 == null)
     {
       securityTypeNode1 = new SecurityTypeNode(obj0.SecurityType);
       this.ahMFxJ76rT.Nodes[0].Nodes.Add((TreeNode) securityTypeNode1);
     }
     securityTypeNode1.Nodes.Add((TreeNode) new InstrumentNode(obj0));
   }
   else
     this.ahMFxJ76rT.Nodes[0].Nodes.Add((TreeNode) new InstrumentNode(obj0));
 }