Ignore:
Timestamp:
Feb 15, 2011, 11:43:32 PM (11 years ago)
Author:
weyers
Message:

EnigmaPresentation Settings synchronisation and start on play update and bugfixes, Pictures updated as .png, Rotor2 synchronisation update, Reflector bugfix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/Enigma/Enigma.cs

    r2636 r2701  
    8989        private string FormattedEncrypt(int rotor1Pos, int rotor2Pos, int rotor3Pos, int rotor4Pos, string text)
    9090        {
    91             return postFormatOutput(core.Encrypt(rotor1Pos, rotor2Pos, rotor3Pos, rotor4Pos, preFormatInput(text)));
     91            String input = preFormatInput(text);
     92            myPresentation.setinput(input);
     93            myPresentation.playClick(null, EventArgs.Empty);
     94            return postFormatOutput(core.Encrypt(rotor1Pos, rotor2Pos, rotor3Pos, rotor4Pos, input));
    9295        }
    9396
     
    273276            this.analyzer.OnIntermediateResult += new EventHandler<IntermediateResultEventArgs>(analyzer_OnIntermediateResult);
    274277            this.statistics = new Dictionary<int, IDictionary<string, double[]>>();
    275             myPresentation = new EnigmaPresentation();
     278            myPresentation = new EnigmaPresentation(this.settings);
    276279            this.Presentation = myPresentation;
    277280            this.settings.PropertyChanged += myPresentation.settings_OnPropertyChange;
     
    456459        {
    457460            LogMessage("Enigma stopped", NotificationLevel.Info);
     461            myPresentation.stopclick(this, EventArgs.Empty);
    458462            analyzer.StopAnalysis();
    459463        }
Note: See TracChangeset for help on using the changeset viewer.