public SigabaCore(Sigaba facade, SigabaPresentation sigpa) { _sigpa = sigpa; _facade = facade; _settings = (SigabaSettings)_facade.Settings; CodeWheels = new Rotor[15]; CipherRotors = new Rotor[5]; ControlRotors = new Rotor[5]; IndexRotors = new Rotor[5]; }
public Sigaba() { SigabaPresentation sigpa = new SigabaPresentation(this, _settings); Presentation = sigpa; this._settings.PropertyChanged += sigpa.settings_OnPropertyChange; _core = new SigabaCore(this, sigpa); _fastCore = new SigabaCoreFast(); _keys = new string[5]; this._settings.PropertyChanged += _core.settings_OnPropertyChange; }