Esempio n. 1
0
        private void mnuSealMeasure_Click(object sender, EventArgs e)
        {
            if (points["a"].NearlyCoincideWith(points["b"]))
            {
                return;
            }

            if (!ShowMeasurableInfo)
            {
                ShowMeasurableInfo = true;
                if (ShowMeasurableInfoChanged != null)
                {
                    ShowMeasurableInfoChanged(this, EventArgs.Empty);
                }
            }

            FormCalibrateLine fcm = new FormCalibrateLine(CalibrationHelper, this);

            FormsHelper.Locate(fcm);
            fcm.ShowDialog();
            fcm.Dispose();

            CallInvalidateFromMenu(sender);
        }
Esempio n. 2
0
        private void mnuCalibrate_Click(object sender, EventArgs e)
        {
            if (points["a"].NearlyCoincideWith(points["b"]))
            {
                return;
            }

            if (trackExtraData == TrackExtraData.None)
            {
                trackExtraData = TrackExtraData.TotalDistance;
                if (ShowMeasurableInfoChanged != null)
                {
                    ShowMeasurableInfoChanged(this, new EventArgs <TrackExtraData>(trackExtraData));
                }
            }

            FormCalibrateLine fcm = new FormCalibrateLine(CalibrationHelper, this);

            FormsHelper.Locate(fcm);
            fcm.ShowDialog();
            fcm.Dispose();

            InvalidateFromMenu(sender);
        }