Filtration/Filtration.ObjectModel/ThemeEditor/ThemeComponent.cs

32 lines
863 B
C#
Raw Normal View History

using System;
using System.Windows.Media;
2015-06-26 12:42:20 -04:00
using Filtration.ObjectModel.Enums;
2015-06-26 12:42:20 -04:00
namespace Filtration.ObjectModel.ThemeEditor
{
2015-06-26 12:42:20 -04:00
[Serializable]
public class ThemeComponent
{
2015-06-26 12:42:20 -04:00
public ThemeComponent()
{
2015-06-26 12:42:20 -04:00
}
public ThemeComponent(ThemeComponentType componentType, string componentName, Color componentColor)
{
if (componentName == null || componentColor == null)
{
throw new ArgumentException("Null parameters not allowed in ThemeComponent constructor");
}
2015-06-26 12:42:20 -04:00
ComponentType = componentType;
Color = componentColor;
ComponentName = componentName;
}
public string ComponentName { get; set; }
2015-06-26 12:42:20 -04:00
public ThemeComponentType ComponentType{ get; set; }
public Color Color { get; set; }
}
}