Table of Contents

Class ProfileConfigurationIcon

Namespace
Artemis.Core
Assembly
Artemis.Core.dll

Represents the icon of a ProfileConfiguration

public class ProfileConfigurationIcon : CorePropertyChanged, IStorageModel
Inheritance
object
CorePropertyChanged
ProfileConfigurationIcon
Implements

Properties

Fill

Gets or sets a boolean indicating whether or not this icon should be filled.

public bool Fill { get; set; }

Property Value

bool

IconBytes

Gets or sets the icon bytes if IconType is BitmapImage

public byte[]? IconBytes { get; }

Property Value

byte[]

IconName

Gets the name of the icon if IconType is MaterialIcon

public string? IconName { get; }

Property Value

string

IconType

Gets the type of icon this profile configuration uses

public ProfileConfigurationIconType IconType { get; }

Property Value

ProfileConfigurationIconType

Methods

Load()

Loads the model from its associated entity

public void Load()

OnIconUpdated()

Invokes the IconUpdated event

protected virtual void OnIconUpdated()

Save()

Saves the model to its associated entity

public void Save()

SetIconByName(string)

Updates the IconName to the provided value and changes the IconType is MaterialIcon

public void SetIconByName(string iconName)

Parameters

iconName string

The name of the icon

SetIconByStream(Stream)

Updates the IconBytes to the provided value and changes the IconType is

public void SetIconByStream(Stream stream)

Parameters

stream Stream

The stream to copy

Events

IconUpdated

Occurs when the icon was updated

public event EventHandler? IconUpdated

Event Type

EventHandler