예제 #1
0
        /// <summary>
        /// Shows the properties form for image measure tool.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
        private void propertiesAction_Clicked(object sender, EventArgs e)
        {
            ImageMeasureTool visualTool = (ImageMeasureTool)VisualTool;

            using (PropertyGridForm dlg = new PropertyGridForm(visualTool, "Image measure tool settings"))
            {
                dlg.ShowDialog();
            }
        }
예제 #2
0
        /// <summary>
        /// Shows the properties form for focused measurement annotation.
        /// </summary>
        /// <param name="sender">The source of the event.</param>
        /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
        private void measurementPropertiesAction_Clicked(object sender, EventArgs e)
        {
            ImageMeasureTool visualTool = (ImageMeasureTool)VisualTool;

            if (visualTool.FocusedAnnotationView == null)
            {
                return;
            }

            using (PropertyGridForm dlg = new PropertyGridForm(visualTool.FocusedAnnotationView, "Measurement settings"))
            {
                dlg.ShowDialog();
            }
        }