Ignore:
Timestamp:
Mar 14, 2009, 11:42:47 AM (13 years ago)
Author:
enkler
Message:

Added PropertySaveOrder to CaesarAnalysisHelper

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk

    • Property svn:ignore
      •  

        old new  
        44*.testrunconfig
        55_ReSharper.CrypTool 2.0
         6CrypTool 2.0.4.1.resharper.user
  • trunk/CrypPlugins/CaesarAnalysisHelper/CaesarAnalysisHelper.cs

    r238 r239  
    11using System;
    2 using System.Collections.Generic;
    32using System.ComponentModel;
    43using System.Windows.Controls;
     
    1514
    1615    [Author("Fabian Enkler", "", "", "")]
    17     [PluginInfo(false, "CaesarAnalysisHelper", "", "", "CaesarAnalysisHelper/icon.png")]
     16    [PluginInfo(false, "CaesarAnalysisHelper", "This plugin is designed in order to make a cryptanalysis of a caesarcipher based on the frequency test.", "", "CaesarAnalysisHelper/icon.png")]
    1817    public class CaesarAnalysisHelper : IThroughput
    1918    {
    2019        private readonly CaesarAnalysisHelperSettings settings;
     20        private string inputList = string.Empty;
     21        private int key;
    2122
    2223        public event PropertyChangedEventHandler PropertyChanged;
     
    3334        {
    3435            get { return settings; }
    35         }
    36 
    37         private string inputList = string.Empty;
    38         private int key;
    39         private readonly List<FrequencyObject> ObjectList = new List<FrequencyObject>();
     36        }
    4037
    4138        [PropertyInfo(Direction.Input, "List Input", "This is the analysis input from the frequency test.", "", true, false, DisplayLevel.Beginner, QuickWatchFormat.Text,
     
    151148        private void GuiNotification(string text)
    152149        {
     150            GuiNotification(text,NotificationLevel.Debug);
     151        }
     152
     153        private void GuiNotification(string text, NotificationLevel Level)
     154        {
    153155            if (OnGuiLogNotificationOccured != null)
    154                 OnGuiLogNotificationOccured(this, new GuiLogEventArgs(text, this, NotificationLevel.Debug));
     156                OnGuiLogNotificationOccured(this, new GuiLogEventArgs(text, this, Level));
    155157        }
    156158    }
  • trunk/CrypPlugins/CaesarAnalysisHelper/CaesarAnalysisHelperSettings.cs

    r237 r239  
    66    class CaesarAnalysisHelperSettings : ISettings
    77    {
    8         public bool HasChanges
    9         {
    10             get;
    11             set;
    12         }
    13 
    148        private char frequentChar = 'e';
    159
     10        [PropertySaveOrder(0)]
    1611        [TaskPane("Frequent Char", "The most frequent char in the text's language.", null, 4, false, DisplayLevel.Beginner, ControlType.TextBox, ValidationType.RegEx, "^([a-z]){1,1}$")]
    1712        public char FrequentChar
     
    2520        }
    2621
     22        [PropertySaveOrder(1)]
     23        public bool HasChanges
     24        {
     25            get;
     26            set;
     27        }
     28
    2729        public event PropertyChangedEventHandler PropertyChanged;
    2830    }
Note: See TracChangeset for help on using the changeset viewer.