mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 14:46:31 +00:00
I like it move it move it
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user