Ejemplo n.º 1
0
 public PartWriter(PartCollection parts)
 {
     List<Rotor> cloneRots = new List<Rotor>();
     parts.Rotors.ForEach(rot => cloneRots.Add(new Rotor(rot)));
     cloneRots.ForEach(rot => rot.Name += "(" + DateTime.Now.ToString("ddMMyy") + "Exported)");
     Reflector cloneRef = new Reflector(parts.Reflector);
     cloneRef.Name += "(" + DateTime.Now.ToString("ddMMyy") + "Exported)";
     this.parts = new PartCollection
     {
         PlugBoard = parts.PlugBoard,
         Rotors = cloneRots,
         Reflector = cloneRef
     };
 }
Ejemplo n.º 2
0
 public void ChangeReflector(Reflector newRef)
 {
     this.machine.Reflector = newRef;
     this.PartInfo.UpdatePartInfo();
 }
Ejemplo n.º 3
0
 public Reflector(Reflector reflector)
 {
     this.Name = reflector.Name;
     this.Wiring = reflector.Wiring;
 }