mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 09:36:30 +00:00
2cf69f4e4e
fix creation new anns bug
22 lines
467 B
C#
22 lines
467 B
C#
using System.Text.Json.Serialization;
|
|
using System.Windows.Media;
|
|
using Azaion.Annotator.Extensions;
|
|
|
|
namespace Azaion.Annotator.DTO;
|
|
|
|
public class AnnotationClass
|
|
{
|
|
public int Id { get; set; }
|
|
|
|
public string Name { get; set; }
|
|
public string ShortName { get; set; }
|
|
|
|
[JsonIgnore]
|
|
public Color Color => Id.ToColor();
|
|
|
|
[JsonIgnore]
|
|
public int ClassNumber => Id + 1;
|
|
|
|
[JsonIgnore]
|
|
public SolidColorBrush ColorBrush => new(Color);
|
|
} |