private static void ParseGeometyCommand(string[] values) { if (values.Length > 5) { GeometryStyle = (GeometryStyles)Enum.Parse(typeof(GeometryStyles), values[4]); selectedPoint = int.Parse(values[5]); if (values.Length > 7) { FillColor = SavedColor.Load(values[6]); LineColor = SavedColor.Load(values[7]); } if (values.Length > 8) { points.Clear(); string[] pointListText = values[8].Split(new char[] { ';' }); foreach (string pointText in pointListText) { string[] parts = pointText.Split(new char[] { ' ' }); if (parts.Length > 1) { points.Add(new PointF(float.Parse(parts[0]), float.Parse(parts[1]))); } } } } }
private static void PareseMetaData(string[] values) { if (values.Length > 6) { Earth3d.MainWindow.Config.NodeDiplayName = values[4]; Background = SavedColor.Load(values[5]); DrawOutline = Boolean.Parse(values[6]); } }
private static void PareseMetaData(string[] values) { if (values.Length > 8) { Earth3d.MainWindow.Config.NodeDiplayName = values[4]; Background = SavedColor.Load(values[5]); DrawOutline = Boolean.Parse(values[6]); CalibrationType = (CalibrationImageType)int.Parse(values[7]); int node = int.Parse(values[8]); ShowCalibrationImage = CalibrationType != CalibrationImageType.None; if (!(node == -1 || node == Earth3d.MainWindow.Config.NodeID) && ShowCalibrationImage) { CalibrationType = CalibrationImageType.Bkack; } } }