Class AbstractSettingsGroupBase
Inheritance
AbstractSettingsGroupBase
Namespace: SdlSdl.CoreSettings
Assembly: Sdl.Core.Settings.dll
Syntax
public abstract class AbstractSettingsGroupBase : ISettingsGroup, INotifyPropertyChanged, IEditableObject
Constructors
AbstractSettingsGroupBase()
Declaration
protected AbstractSettingsGroupBase()
Fields
_parentEventHandlerAttached
Declaration
protected bool _parentEventHandlerAttached
Field Value
_parentPropertyChangedEventHandlerAttached
Declaration
protected bool _parentPropertyChangedEventHandlerAttached
Field Value
_propertyChangedDelegate
Declaration
protected PropertyChangedEventHandler _propertyChangedDelegate
Field Value
_settingChangedDelegate
Declaration
protected EventHandler<SettingsChangedEventArgs> _settingChangedDelegate
Field Value
_suspended
Declaration
Field Value
_suspendedEvents
Declaration
protected List<string> _suspendedEvents
Field Value
Properties
EventsSuspended
Declaration
public bool EventsSuspended { get; }
Property Value
Id
Declaration
public abstract string Id { get; set; }
Property Value
Parent
Declaration
public abstract ISettingsGroup Parent { get; }
Property Value
SettingsBundle
Declaration
public abstract ISettingsBundle SettingsBundle { get; set; }
Property Value
Methods
BeginEdit()
Declaration
public abstract void BeginEdit()
CancelEdit()
Declaration
public abstract void CancelEdit()
CollectSettings(ISettingsGroup, List<string>)
Declaration
protected abstract void CollectSettings(ISettingsGroup settingsGroup, List<string> keys)
Parameters
ContainsSetting(string)
Declaration
public abstract bool ContainsSetting(string settingId)
Parameters
Type |
Name |
Description |
string |
settingId |
|
Returns
DiscardEvents()
Declaration
protected void DiscardEvents()
EndEdit()
Declaration
public abstract void EndEdit()
GetSettingIds()
Declaration
public abstract IEnumerable<string> GetSettingIds()
Returns
GetSetting<T>(string)
Declaration
public abstract Setting<T> GetSetting<T>(string id)
Parameters
Type |
Name |
Description |
string |
id |
|
Returns
Type Parameters
GetSetting<T>(string, out Setting<T>)
Declaration
public abstract bool GetSetting<T>(string settingId, out Setting<T> setting)
Parameters
Returns
Type Parameters
GetSetting<T>(string, T)
Declaration
public abstract Setting<T> GetSetting<T>(string settingId, T defaultValue)
Parameters
Type |
Name |
Description |
string |
settingId |
|
T |
defaultValue |
|
Returns
Type Parameters
GetSetting<T>(string, out T)
Declaration
public abstract bool GetSetting<T>(string settingId, out T value)
Parameters
Type |
Name |
Description |
string |
settingId |
|
T |
value |
|
Returns
Type Parameters
ImportSettings(ISettingsGroup)
Declaration
public abstract void ImportSettings(ISettingsGroup otherGroup)
Parameters
OnSettingChanged(string)
Declaration
protected virtual void OnSettingChanged(string settingId)
Parameters
Type |
Name |
Description |
string |
settingId |
|
OnSettingsChanged(IList<string>, bool)
Declaration
protected virtual void OnSettingsChanged(IList<string> settingIds, bool isResumingEvents)
Parameters
RemoveSetting(string)
Declaration
public abstract bool RemoveSetting(string settingId)
Parameters
Type |
Name |
Description |
string |
settingId |
|
Returns
Reset()
Declaration
public abstract void Reset()
ResumeEvents()
Declaration
public void ResumeEvents()
SuspendEvents()
Declaration
public void SuspendEvents()
parent_PropertyChanged(object, PropertyChangedEventArgs)
Declaration
protected abstract void parent_PropertyChanged(object sender, PropertyChangedEventArgs e)
Parameters
parent_SettingsChanged(object, SettingsChangedEventArgs)
Declaration
protected abstract void parent_SettingsChanged(object sender, SettingsChangedEventArgs e)
Parameters
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
SettingsChanged
Declaration
public event EventHandler<SettingsChangedEventArgs> SettingsChanged
Event Type
Implements