convenience constructor to automatically initialize a new PaletteObjectModel with an array of entries
This commit is contained in:
parent
da373d48e7
commit
98a81981f0
@ -40,6 +40,20 @@ namespace UniversalEditor.ObjectModels.Multimedia.Palette
|
||||
return _omr;
|
||||
}
|
||||
|
||||
public PaletteObjectModel()
|
||||
{
|
||||
}
|
||||
public PaletteObjectModel(PaletteEntry[] entries)
|
||||
{
|
||||
if (entries != null)
|
||||
{
|
||||
for (int i = 0; i < entries.Length; i++)
|
||||
{
|
||||
Entries.Add(entries[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void Clear()
|
||||
{
|
||||
Entries.Clear();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user