public static MapCustomPositionAngleObject Create() { string text = DialogUtilities.GetStringFromDialog(labelText: "Enter a PositionAngle."); PositionAngle posAngle = PositionAngle.FromString(text); return(posAngle != null ? new MapCustomPositionAngleObject(posAngle) : null); }
public static MapObject Create(string text1, string text2) { PositionAngle posAngle1 = PositionAngle.FromString(text1); PositionAngle posAngle2 = PositionAngle.FromString(text2); if (posAngle1 == null || posAngle2 == null) { return(null); } return(new MapLineSegmentObject(posAngle1, posAngle2)); }
public static MapObject Create() { string text1 = DialogUtilities.GetStringFromDialog(labelText: "Enter the first PositionAngle."); if (text1 == null) { return(null); } string text2 = DialogUtilities.GetStringFromDialog(labelText: "Enter the second PositionAngle."); if (text2 == null) { return(null); } PositionAngle posAngle1 = PositionAngle.FromString(text1); PositionAngle posAngle2 = PositionAngle.FromString(text2); if (posAngle1 == null || posAngle2 == null) { return(null); } return(new MapLineSegmentObject(posAngle1, posAngle2)); }