Class ProfileCategory
Represents a category containing ProfileConfigurations
public class ProfileCategory : CorePropertyChanged, IStorageModel
- Inheritance
-
objectCorePropertyChangedProfileCategory
- Implements
Fields
Empty
Represents an empty profile category.
public static readonly ProfileCategory Empty
Field Value
Properties
EntityId
Gets the unique ID of this category
public Guid EntityId { get; }
Property Value
IsCollapsed
Gets or sets a boolean indicating whether the category is collapsed or not
Note: Has no implications other than inside the UI
public bool IsCollapsed { get; set; }
Property Value
IsSuspended
Gets or sets a boolean indicating whether this category is suspended, disabling all its profiles
public bool IsSuspended { get; set; }
Property Value
Name
Gets or sets the name of the profile category
public string Name { get; set; }
Property Value
Order
The order in which this category appears in the update loop and sidebar
public int Order { get; set; }
Property Value
ProfileConfigurations
Gets a read only collection of the profiles inside this category
public ReadOnlyCollection<ProfileConfiguration> ProfileConfigurations { get; }
Property Value
Methods
AddProfileConfiguration(ProfileConfiguration, ProfileConfiguration?)
Adds a profile configuration to this category
public void AddProfileConfiguration(ProfileConfiguration configuration, ProfileConfiguration? target)
Parameters
configurationProfileConfigurationtargetProfileConfiguration
Load()
Loads the model from its associated entity
public void Load()
OnProfileConfigurationAdded(ProfileConfigurationEventArgs)
Invokes the ProfileConfigurationAdded event
protected virtual void OnProfileConfigurationAdded(ProfileConfigurationEventArgs e)
Parameters
OnProfileConfigurationRemoved(ProfileConfigurationEventArgs)
Invokes the ProfileConfigurationRemoved event
protected virtual void OnProfileConfigurationRemoved(ProfileConfigurationEventArgs e)
Parameters
Save()
Saves the model to its associated entity
public void Save()
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
Events
ProfileConfigurationAdded
Occurs when a profile configuration is added to this ProfileCategory
public event EventHandler<ProfileConfigurationEventArgs>? ProfileConfigurationAdded
Event Type
ProfileConfigurationRemoved
Occurs when a profile configuration is removed from this ProfileCategory
public event EventHandler<ProfileConfigurationEventArgs>? ProfileConfigurationRemoved