ScanMaster.Controller.AdjustProfileParameter C# (CSharp) Method

AdjustProfileParameter() public method

public AdjustProfileParameter ( String plugin, String parameter, String newValue, bool groupMode ) : void
plugin String
parameter String
newValue String
groupMode bool
return void
        public void AdjustProfileParameter(String plugin, String parameter, String newValue, bool groupMode)
        {
            SettingsReflector sr = new SettingsReflector();
            if (!groupMode)
            {
                sr.SetField(profileManager.Processor.PluginForString(profileManager.CurrentProfile, plugin),
                    parameter, newValue);
            }
            else
            {
                ArrayList profiles = profileManager.ProfilesInGroup(profileManager.CurrentProfile.Group);
                foreach (Profile p in profiles)
                    sr.SetField(profileManager.Processor.PluginForString(p, plugin), parameter, newValue);
            }
        }