Ejemplo n.º 1
0
 public AdjustMyParts( float distanceBetweenParts )
 {
     for( int partIndex = 0; partIndex < 10; partIndex++ ) {
     AdjustMyLength part = new AdjustMyLength {
       Start = (20+ distanceBetweenParts) * partIndex ,
       Name = "Part " + partIndex
     };
     part.End = part.Start + 20;
     Parts.Add( part );
       }
 }
Ejemplo n.º 2
0
 public AdjustMyParts(float distanceBetweenParts)
 {
     for (int partIndex = 0; partIndex < 10; partIndex++)
     {
         AdjustMyLength part = new AdjustMyLength {
             Start = (20 + distanceBetweenParts) * partIndex,
             Name  = "Part " + partIndex
         };
         part.End = part.Start + 20;
         Parts.Add(part);
     }
 }