30 lines
709 B
C#
30 lines
709 B
C#
namespace BlazorCanvas.Server.Components.Data;
|
|
|
|
public class CanvasCommand
|
|
{
|
|
public double X { get; set; }
|
|
public double Y { get; set; }
|
|
public string Color { get; set; } = "Black";
|
|
public int PointSize { get; set; }
|
|
public CanvasCommand() { }
|
|
public CanvasCommand(CanvasCommand command)
|
|
{
|
|
X = command.X;
|
|
Y = command.Y;
|
|
Color = command.Color;
|
|
PointSize = command.PointSize;
|
|
}
|
|
|
|
public bool Equals(CanvasCommand obj)
|
|
{
|
|
if (obj == null)
|
|
return false;
|
|
if (X == obj.X &
|
|
Y == obj.Y &
|
|
Color == obj.Color &
|
|
PointSize == obj.PointSize)
|
|
return true;
|
|
return false;
|
|
}
|
|
}
|