Ignore:
Timestamp:
Jul 1, 2009, 1:27:04 PM (13 years ago)
Author:
angelov
Message:

The variables are cleared in Stop. The plug-in could be reused.
Also some changes in Settings.

Location:
trunk/CrypPlugins/MonoalphabeticAnalysis
Files:
2 edited

Legend:

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

    r372 r373  
    276276        public void Stop()
    277277        {
    278             //statisticTextFrequencyInput_Monograms = "";
    279             //OnPropertyChanged("StatisticTextFrequencyInput_Monograms");
    280            // statisticTextFrequencyInput_Digrams = "";
    281             //OnPropertyChanged("StatisticTextFrequencyInput_Digrams");
    282            
     278        stringOutput = "";
     279        textStatisticInput_Monograms = "";
     280        textStatisticInput_Digrams="";
     281        cipherTextFrequencyInput_Monograms = "";
     282        decipherAttempt_Digrams = "";
     283        GoodAlphabet = null;
     284        NextAlphabet = null;
     285        alphabetGoodnes = 0;
     286        AlphabetCounterA = 1;
     287        AlphabetcounterB = 1;
     288       
    283289            //throw new NotImplementedException();
    284290        }
  • trunk/CrypPlugins/MonoalphabeticAnalysis/MonoalphabeticAnalysisSettings.cs

    r372 r373  
    2525       
    2626
    27         /// <summary>
    28         /// Visible setting how to deal with alphabet case. 0 = case insentive, 1 = case sensitive
    29         /// </summary>
     27       
    3028        [PropertySaveOrder(1)]
    31         [ContextMenu("Generate Internally", "Using Fast Aproach dramatically reduce the time needed as only two decryption attempts are made. ", 7, DisplayLevel.Expert, ContextMenuControlType.ComboBox, null, new string[] { "Don't use Fast Aproach", "Use Fast Aproach" })]
    32         [TaskPane("Fast Aproach", "Using Fast Aproach dramatically reduce the time needed as only two decryption attempts are made. ", "", 7, false, DisplayLevel.Expert, ControlType.ComboBox, new string[] { "Don't Use Fast Aproach", "Use Fast Aproach" })]
     29        [ContextMenu("Generate digram matrix internally", "When the digram matrix is generated internally, the time for calculating the cost function is significantly reduced. ", 7, DisplayLevel.Expert, ContextMenuControlType.ComboBox, null, new string[] { "Don't generate internally", "Generate internally" })]
     30        [TaskPane("Digram matrix", "When the digram matrix is generated internally, the time for calculating the cost function is significantly reduced.", "", 7, false, DisplayLevel.Expert, ControlType.ComboBox, new string[] { "Don't generate internally", "Generate internally" })]
    3331        public int FastAproach
    3432        {
Note: See TracChangeset for help on using the changeset viewer.