Ignore:
Timestamp:
Jun 20, 2010, 10:27:22 PM (11 years ago)
Author:
Paul Lelgemann
Message:

o Work on the distributed KeySearcher presentation

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CrypPlugins/KeySearcher/KeySearcherSettings.cs

    r1674 r1682  
    9999        }
    100100
     101        private bool verbosePeerToPeerDisplay;
     102        [TaskPane("Display verbose information", "Display verbose information about network requests in the quick watch.", GroupPeerToPeer, 2, true, DisplayLevel.Beginner,
     103            ControlType.CheckBox)]
     104        public bool VerbosePeerToPeerDisplay
     105        {
     106            get { return verbosePeerToPeerDisplay; }
     107            set
     108            {
     109                if (value != verbosePeerToPeerDisplay)
     110                {
     111                    verbosePeerToPeerDisplay = value;
     112                    OnPropertyChanged("VerbosePeerToPeerDisplay");
     113                    HasChanges = true;
     114                }
     115            }
     116        }
     117
    101118        private int chunkSize;
    102119        [TaskPane("Chunk size", "Amount of keys, that will be calculated by one peer at a time. This value is the exponent of the power of two used for the chunk size.", GroupPeerToPeer, 3, false, DisplayLevel.Professional,
     
    114131                    HasChanges = true;
    115132                }
    116             }
    117         }
    118 
    119         [TaskPane("Amount of chunks", "Total number of chunks that must be calculated with the given chunk size.", GroupPeerToPeer, 4, false, DisplayLevel.Professional,
    120             ControlType.TextBox)]
    121         public double TotalAmountOfChunks
    122         {
    123             get {
    124                 if (keysearcher.Pattern == null || !keysearcher.Pattern.testWildcardKey(key) || ChunkSize == 0)
    125                 {
    126                     return 0;
    127                 }
    128 
    129                 var keyPattern = new KeyPattern.KeyPattern(keysearcher.ControlMaster.getKeyPattern());
    130                 keyPattern.WildcardKey = key;
    131                 var keyPatternPool = new KeyPatternPool(keyPattern, new BigInteger(Math.Pow(2, ChunkSize)));
    132                 return (double) keyPatternPool.Length;
    133             }
    134             set
    135             {
    136                 OnPropertyChanged("TotalAmountOfChunks");
    137133            }
    138134        }
Note: See TracChangeset for help on using the changeset viewer.