コード例 #1
0
ファイル: BooleanParameter.cs プロジェクト: njzyzd/CapeOpen
        /// <summary>
        /// Sets the value of the parameter to its default value.
        /// </summary>
        /// <remarks>
        /// Sets the value of the parameter to its default value.
        /// </remarks>
        /// <exception cref ="ECapeUnknown">The error to be raised when other error(s),  specified for this operation, are not suitable.</exception>
        public override void Reset()
        {
            ParameterResetEventArgs args = new ParameterResetEventArgs(this.ComponentName);

            m_Parameter.Reset();
            OnParameterReset(args);
        }
コード例 #2
0
ファイル: OptionParameter.cs プロジェクト: Chukanof/CapeOpen
        /// <summary>
        /// Sets the value of the parameter to its default value.
        /// </summary>
        /// <remarks>
        ///  This method sets the parameter's value to the default value.
        /// </remarks>
        /// <exception cref ="ECapeUnknown">The error to be raised when other error(s),  specified for this operation, are not suitable.</exception>
        public override void Reset()
        {
            ParameterResetEventArgs args = new ParameterResetEventArgs(this.ComponentName);

            m_parameter.Reset();
            OnParameterReset(args);
            NotifyPropertyChanged("Value");
        }