Пример #1
0
 //Zbiera informację o rotorach
 private void getRotors()
 {
     rotorL = new Rotor(rotor1_type.Text, (int)rotor1_position.Value, (int)rotor1_ringPosition.Value);
     rotorS = new Rotor(rotor2_type.Text, (int)rotor2_position.Value, (int)rotor2_ringPosition.Value);
     rotorP = new Rotor(rotor3_type.Text, (int)rotor3_position.Value, (int)rotor3_ringPosition.Value);
     rotory = new Rotors(rotorP, rotorS, rotorL);
 }
Пример #2
0
 //Konstruktor
 public Rotors(Rotor rP, Rotor rS, Rotor rL)
 {
     rotorP = rP;
     rotorS = rS;
     rotorL = rL;
 }