Changeset 985 for trunk/CrypPlugins/CLK


Ignore:
Timestamp:
Dec 13, 2009, 6:51:49 PM (12 years ago)
Author:
Sören Rinne
Message:
  • slight changes in BFP, LFSR, CLK, and Appender
File:
1 edited

Legend:

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

    r956 r985  
    3434    private CLKPresentation cLKPresentation;
    3535    private bool output;
    36     private bool eventInput;
     36    private int roundOutput;
     37    private object eventInput;
    3738    private int timeout = 2000;
    3839    private int rounds = 10;
     
    103104    }
    104105
     106    [PropertyInfo(Direction.OutputData, "Output of rounds", "Output.", "", false, false, DisplayLevel.Beginner, QuickWatchFormat.Text, null)]
     107    public int RoundOutput
     108    {
     109        get { return roundOutput; }
     110        set
     111        {
     112            if (value != roundOutput)
     113            {
     114                roundOutput = value;
     115                OnPropertyChanged("RoundOutput");
     116            }
     117        }
     118    }
     119
    105120    [PropertyInfo(Direction.InputData, "EventInput", "EventInput", "", false, false, DisplayLevel.Beginner, QuickWatchFormat.Text, null)]
    106     public bool EventInput
     121    public object EventInput
    107122    {
    108123        get { return eventInput; }
     
    164179            {
    165180                OnPropertyChanged("Output");
     181                roundOutput = myRounds;
     182                OnPropertyChanged("RoundOutput");
    166183                myRounds--;
    167184                ProgressChanged(settings.Rounds - myRounds, settings.Rounds);
     
    199216            // first fire up an event, then get the timer to handle that for us
    200217            OnPropertyChanged("Output");
     218            roundOutput = myRounds;
     219            OnPropertyChanged("RoundOutput");
    201220            myRounds--;
    202221
     
    218237        {
    219238            OnPropertyChanged("Output");
     239            roundOutput = myRounds;
     240            OnPropertyChanged("RoundOutput");
    220241            myRounds--;
    221242            ProgressChanged(settings.Rounds - myRounds, settings.Rounds);
Note: See TracChangeset for help on using the changeset viewer.