Ignore:
Timestamp:
Dec 7, 2009, 7:48:37 PM (12 years ago)
Author:
Matthäus Wander
Message:

AnotherEditor:

  • does not show a warning anymore when a missing property in save file is marked with the DontSave attribute

CrypWin:

  • changed AssemblyCompany to "CrypTool2" as this string is being used to determine AppData directory (where the user.config file is located)
  • added support for arbitrary enums as TaskPane settings (see WordPatterns how to use them)

Dictionary:

  • fixed some bugs in Dictionary file handling

WordPatterns:

  • added XAML description
  • added case sensitivity setting (enum!)
  • minor sample fix

Note: New binaries are not included as I have some more unfinished core changes on my machine.

Location:
trunk/CrypPlugins/Dictionary
Files:
2 edited

Legend:

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

    r520 r962  
    248248            get
    249249            {
    250                 if (dicList != null && dicList.Length > settings.Dictionary)
     250                if (dicList != null && settings.Dictionary >= 0 && settings.Dictionary < dicList.Length)
    251251                    return dicList[settings.Dictionary];
    252252                else
     
    331331        public void Execute()
    332332        {
     333            if (CurrentDicSelection == null)
     334            {
     335                GuiLogMessage("No dictionary chosen.", NotificationLevel.Error);
     336                return;
     337            }
     338
    333339            EventsHelper.ProgressChanged(OnPluginProgressChanged, this, new PluginProgressEventArgs(50, 100));
    334340            EventsHelper.PropertyChanged(PropertyChanged, this, new PropertyChangedEventArgs("OutputList"));
     
    428434            dicList = dataMgr.LoadDirectory(DATATYPE).Values.ToArray();
    429435
    430             settings.Collection.Clear();
     436            if (settings.Collection.Count > 0)
     437                settings.Collection.Clear();
     438
    431439            foreach (DataFileMetaInfo meta in dicList)
    432440            {
  • trunk/CrypPlugins/Dictionary/DictionarySettings.cs

    r520 r962  
    244244
    245245    // CrypWin requires this to be a collection of strings
     246    [DontSave]
    246247    public ObservableCollection<string> Collection
    247248    {
Note: See TracChangeset for help on using the changeset viewer.