mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 22:26:31 +00:00
15 lines
387 B
C#
15 lines
387 B
C#
using System.Windows.Media;
|
|
using Azaion.Annotator.Extensions;
|
|
|
|
namespace Azaion.Annotator.DTO;
|
|
|
|
public class AnnotationClass(int id, string name = "")
|
|
{
|
|
public int Id { get; set; } = id;
|
|
|
|
public string Name { get; set; } = name;
|
|
public Color Color { get; set; } = id.ToColor();
|
|
|
|
public int ClassNumber => Id + 1;
|
|
public SolidColorBrush ColorBrush => new(Color);
|
|
} |