Esempio n. 1
0
 public void Rotate()
 {
     if (Offset == _adjacentRotorAdvanceOffset)
     {
         AdvanceAdjacentRotor?.Invoke(this, new AdvanceEventArgs {
             message = "I'm advancing", character = _wiring[22]
         });
     }
     Offset = (Offset + 1) % 26;
 }
Esempio n. 2
0
 /// <summary>
 /// Rotates the rotor. If necessary, also rotates the adjacent rotor.
 /// </summary>
 public void Rotate()
 {
     if (Offset == _adjacentRotorAdvanceOffset)
     {
         AdvanceAdjacentRotor?.Invoke(this,
                                      new AdvanceEventArgs {
             message = "Rotor Advancing from setting", character = DialSetting
         });
     }
     Offset = (Offset + 1) % 26;
 }