Changeset 945


Ignore:
Timestamp:
Dec 3, 2009, 2:05:19 PM (12 years ago)
Author:
Arno Wacker
Message:

Enigma: Now also from start only available settings are visible (see #46) - thanks to Thomas.

Location:
trunk/CrypPlugins/Enigma
Files:
2 edited

Legend:

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

    r740 r945  
    445445        public void Initialize()
    446446        {
    447             LogMessage("Initialize", NotificationLevel.Debug);
     447            LogMessage("Initializing..", NotificationLevel.Debug);
     448            this.settings.Initialize();
    448449        }
    449450
  • trunk/CrypPlugins/Enigma/EnigmaSettings.cs

    r691 r945  
    201201            rotorAStrings.Add("VII (since 1939, M3/M4)"); rotorAStrings.Add("VIII (since 1939, M3/M4)");
    202202            rotorBStrings.Add("Not available for this model.");
    203             hideSettingsElement("Rotor4"); hideSettingsElement("Ring4"); //FIXME: They still show initially... ? Probably, the event is not registered yet..
     203        }
     204
     205        public void Initialize()
     206        {
     207            hideSettingsElement("Rotor4"); hideSettingsElement("Ring4");
    204208        }
    205209
Note: See TracChangeset for help on using the changeset viewer.