/// <inheritdoc/>
        protected override void OnClick(EventArgs e)
        {
            Radians = (Radians)radians;

            editorService.CloseDropDown();

            base.OnClick(e);
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="RadiansEditorControl"/> class.
        /// </summary>
        /// <param name="radians">The <see cref="Radians"/> value to edit.</param>
        /// <param name="editorService">The editor service which is controlling the editor.</param>
        public RadiansEditorControl(Radians radians, IWindowsFormsEditorService editorService)
        {
            Radians = radians;

            DoubleBuffered = true;

            this.editorService = editorService;

            InitializeComponent();

            RecalculateSelectionCircle();
        }
 /// <summary>
 /// Wraps the specified unit test result for evaluation.
 /// </summary>
 /// <param name="value">The value to wrap.</param>
 /// <returns>The wrapped value.</returns>
 protected static RadiansResult TheResultingValue(Radians value)
 {
     return new RadiansResult(value);
 }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the RadiansResult class.
 /// </summary>
 /// <param name="value">The value being examined.</param>
 internal RadiansResult(Radians value)
 {
     this.value = value;
 }