port from perforce
This commit is contained in:
19
intromat/Intromat/PersistentModel/PositionModel.cs
Normal file
19
intromat/Intromat/PersistentModel/PositionModel.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using System.Windows;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace Intromat.PersistentModel
|
||||
{
|
||||
public struct PositionModel
|
||||
{
|
||||
[XmlAttribute]
|
||||
public double X { get; set; }
|
||||
|
||||
[XmlAttribute]
|
||||
public double Y { get; set; }
|
||||
|
||||
public static implicit operator Point(PositionModel position)
|
||||
{
|
||||
return new(position.X, position.Y);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user