private void SetHoverLine(Line l) { bool change = hoverLine != l; if (change) { hoverLine = l; PictureBox1.SetHoverLine(l); PictureBox1.Invalidate(); if (selectedLine == null) { lineBox.Enabled = l != null; if (l != null) { numLatA.Value = (decimal)l.A.latitude; numLatB.Value = (decimal)l.B.latitude; numLatO.Value = (decimal)l.O.latitude; numLongA.Value = (decimal)l.A.longitude; numLongB.Value = (decimal)l.B.longitude; numLongO.Value = (decimal)l.O.longitude; fldLineTyp.Text = ((LineType)l.Type).ToString(); } else { numLatA.Value = 0; numLatB.Value = 0; numLatO.Value = 0; numLongA.Value = 0; numLongB.Value = 0; numLongO.Value = 0; fldLineTyp.Text = ""; } } } }
private void SetHoverPoint(PointTempExtension p, Line l) { bool change = hoverPoint != p; if (change) { hoverPoint = p; PictureBox1.SetHoverLine(l); PictureBox1.Invalidate(); } }