添加 MX-PD-盘古 项目文件
将 MX-PD-盘古 - new 目录下的所有文件添加到主仓库
This commit is contained in:
41
MX-PD-盘古 - new/PanGu.DieBonderApp/MainShell/Models/MPoint.cs
Normal file
41
MX-PD-盘古 - new/PanGu.DieBonderApp/MainShell/Models/MPoint.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
using Stylet;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace MainShell.Models
|
||||
{
|
||||
public class MPoint : PropertyChangedBase
|
||||
{
|
||||
private double _x;
|
||||
|
||||
public double X
|
||||
{
|
||||
get { return _x; }
|
||||
set { SetAndNotify(ref _x, value); }
|
||||
}
|
||||
|
||||
private double _y;
|
||||
|
||||
public double Y
|
||||
{
|
||||
get { return _y; }
|
||||
set { SetAndNotify(ref _y, value); }
|
||||
}
|
||||
|
||||
public MPoint() { }
|
||||
|
||||
public MPoint(double x, double y)
|
||||
{
|
||||
_x = x;
|
||||
_y = y;
|
||||
}
|
||||
public override string ToString() => $"({X}, {Y})";
|
||||
public MPoint Clone()
|
||||
{
|
||||
return new MPoint(X, Y);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user