Esempio n. 1
0
        /// <summary>
        /// If returns true dialog will close after OK button is clicked.
        /// </summary>
        /// <param name="Type">The closing type. See <see cref="REXCanCloseType"/> enum.</param>
        /// <returns>Returns true if module can be closed.</returns>
        public override bool OnCanClose(REXCanCloseType Type)
        {
            bool result = true;

            if (ExtensionRef != null)
            {
                result &= ExtensionRef.OnCanClose(Type);
            }

            return(result);
        }
Esempio n. 2
0
        /// <summary>
        /// If returns true dialog will close after OK button is clicked.
        /// </summary>
        /// <param name="Type">The closing type. See <see cref="REXCanCloseType"/> enum.</param>
        /// <returns>Returns true if module can be closed.</returns>
        public override bool OnCanClose(REXCanCloseType Type)
        {
            bool result = true;

            if (ExtensionRef != null)
            {
                result &= ExtensionRef.OnCanClose(Type);
            }

            // insert code here.

            result &= base.OnCanClose(Type);

            return(result);
        }