Ça a l'air que DotNet Aspire c'est ben sweet.
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user