Skip to content

Commit 2d58381

Browse files
committed
Work with xml
1 parent ba2c8cb commit 2d58381

42 files changed

Lines changed: 242 additions & 221 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

SimpleStateMachineNodeEditor/Helpers/MyPoint.cs

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ public MyPoint(MyPoint point)
4646
this.Set(point);
4747
}
4848

49-
5049
/// <summary>
5150
/// Точка находится в начале координат (0,0)
5251
/// </summary>
@@ -152,7 +151,7 @@ public MyPoint FromPoint(Point point)
152151
Set(point);
153152
return this;
154153
}
155-
154+
156155
/// <summary>
157156
/// Возаращает копию текущего объекта
158157
/// </summary>
@@ -164,7 +163,8 @@ public MyPoint Copy()
164163

165164
public override string ToString()
166165
{
167-
return Value.ToString();
166+
return string.Format("{0}, {1}", this.Value.X.ToString(System.Globalization.CultureInfo.InvariantCulture), this.Value.Y.ToString(System.Globalization.CultureInfo.InvariantCulture));
167+
//return Value.ToString();
168168
}
169169

170170
#region Static Methods
@@ -302,6 +302,12 @@ public static MyPoint CreateFromPoint(Point point)
302302
}
303303

304304

305+
public static MyPoint Parse(string str)
306+
{
307+
string[] parts = str.Split(",");
308+
return new MyPoint(double.Parse(parts[0], System.Globalization.CultureInfo.InvariantCulture), double.Parse(parts[1], System.Globalization.CultureInfo.InvariantCulture));
309+
}
310+
305311

306312
#endregion Static Methods
307313

SimpleStateMachineNodeEditor/Images/ApplicationConnectionDiagram_16x.png renamed to SimpleStateMachineNodeEditor/Images/Old/ApplicationConnectionDiagram_16x.png

File renamed without changes.

SimpleStateMachineNodeEditor/Images/ApplicationConnectionDiagram_16x.svg renamed to SimpleStateMachineNodeEditor/Images/Old/ApplicationConnectionDiagram_16x.svg

File renamed without changes.

SimpleStateMachineNodeEditor/Images/CollapseUp_16x.png renamed to SimpleStateMachineNodeEditor/Images/Old/CollapseUp_16x.png

File renamed without changes.

SimpleStateMachineNodeEditor/Images/CollapseUp_16x.svg renamed to SimpleStateMachineNodeEditor/Images/Old/CollapseUp_16x.svg

File renamed without changes.

SimpleStateMachineNodeEditor/Images/DeleteRelationship_16x.png renamed to SimpleStateMachineNodeEditor/Images/Old/DeleteRelationship_16x.png

File renamed without changes.

SimpleStateMachineNodeEditor/Images/DeleteRelationship_16x.svg renamed to SimpleStateMachineNodeEditor/Images/Old/DeleteRelationship_16x.svg

File renamed without changes.

SimpleStateMachineNodeEditor/Images/ExpandDown_lg_16x.png renamed to SimpleStateMachineNodeEditor/Images/Old/ExpandDown_lg_16x.png

File renamed without changes.

SimpleStateMachineNodeEditor/Images/ExpandDown_lg_16x.svg renamed to SimpleStateMachineNodeEditor/Images/Old/ExpandDown_lg_16x.svg

File renamed without changes.

SimpleStateMachineNodeEditor/Images/NewDiagram_16x.png renamed to SimpleStateMachineNodeEditor/Images/Old/NewDiagram_16x.png

File renamed without changes.

0 commit comments

Comments
 (0)