Files
annotations/Azaion.Annotator/DTO/AnnotationClass.cs
T
Oleksandr Bezdieniezhnykh dd0ece36f2 I like it move it move it
2024-05-18 17:51:38 +03:00

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);
}