Class AbstractSettingsGroupBase
Inheritance
Object
AbstractSettingsGroupBase
Implements
INotifyPropertyChanged
IEditableObject
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Assembly: Sdl.Core.Settings.dll
Syntax
public abstract class AbstractSettingsGroupBase : ISettingsGroup
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
Type |
Description |
PropertyChangedEventHandler |
|
_settingChangedDelegate
Declaration
protected EventHandler<SettingsChangedEventArgs> _settingChangedDelegate
Field Value
_suspended
Declaration
Field Value
_suspendedEvents
Declaration
protected List<string> _suspendedEvents
Field Value
Type |
Description |
List<String> |
|
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()
GetSetting<T>(String)
Declaration
public abstract Setting<T> GetSetting<T>(string id)
Parameters
Type |
Name |
Description |
String |
id |
|
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
GetSetting<T>(String, out Setting<T>)
Declaration
public abstract bool GetSetting<T>(string settingId, out Setting<T> setting)
Parameters
Type |
Name |
Description |
String |
settingId |
|
Setting<T> |
setting |
|
Returns
Type Parameters
GetSettingIds()
Declaration
public abstract IEnumerable<string> GetSettingIds()
Returns
Type |
Description |
IEnumerable<String> |
|
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>, Boolean)
Declaration
protected virtual void OnSettingsChanged(IList<string> settingIds, bool isResumingEvents)
Parameters
Type |
Name |
Description |
IList<String> |
settingIds |
|
Boolean |
isResumingEvents |
|
parent_PropertyChanged(Object, PropertyChangedEventArgs)
Declaration
protected abstract void parent_PropertyChanged(object sender, PropertyChangedEventArgs e)
Parameters
Type |
Name |
Description |
Object |
sender |
|
PropertyChangedEventArgs |
e |
|
parent_SettingsChanged(Object, SettingsChangedEventArgs)
Declaration
protected abstract void parent_SettingsChanged(object sender, SettingsChangedEventArgs e)
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()
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type |
Description |
PropertyChangedEventHandler |
|
SettingsChanged
Declaration
public event EventHandler<SettingsChangedEventArgs> SettingsChanged
Event Type
Implements
System.ComponentModel.INotifyPropertyChanged
System.ComponentModel.IEditableObject