Changeset 2476


Ignore:
Timestamp:
03/13/12 05:58:36 (3 years ago)
Author:
lowjoel
Message:

The PrngRegistrar? should not try to store the active PRNG's GUID. It should be left to the Eraser.Plugins.Settings class.

Location:
branches/eraser6/pluginsRewrite
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/pluginsRewrite/Eraser.Plugins/Registrars/PrngRegistrar.cs

    r2440 r2476  
    5050            get 
    5151            { 
    52                 return this[ActivePrngGuid]; 
     52                return this[Host.Instance.Settings.ActivePrng]; 
    5353            } 
    54         } 
    55  
    56         /// <summary> 
    57         /// Sets the GUID of the active PRNG. 
    58         /// </summary> 
    59         public Guid ActivePrngGuid 
    60         { 
    61             private get; 
    62             set; 
    6354        } 
    6455 
  • branches/eraser6/pluginsRewrite/Eraser/SettingsPanel.cs

    r2472 r2476  
    171171 
    172172            foreach (IPrng prng in erasePRNG.Items) 
    173                 if (prng.Guid == Host.Instance.Prngs.ActivePrng.Guid) 
     173                if (prng.Guid == Host.Instance.Settings.ActivePrng) 
    174174                { 
    175175                    erasePRNG.SelectedItem = prng; 
     
    229229                { 
    230230                    erasePRNG.SelectedIndex = 0; 
    231                     Host.Instance.Prngs.ActivePrngGuid = 
     231                    Host.Instance.Settings.ActivePrng = 
    232232                        ((IPrng)erasePRNG.SelectedItem).Guid; 
    233233                } 
     
    434434                    Localisation.IsRightToLeft(this) ? 
    435435                        MessageBoxOptions.RtlReading | MessageBoxOptions.RightAlign : 0); 
    436                 Host.Instance.Prngs.ActivePrngGuid = newPRNG.Guid; 
     436                Host.Instance.Settings.ActivePrng = newPRNG.Guid; 
    437437            } 
    438438 
Note: See TracChangeset for help on using the changeset viewer.