Exemple #1
0
        // ------------------------------------------------------------------
        /// <summary>
        /// Raises the <see cref="OnToolDeactivate"/> event.
        /// </summary>
        /// <param name="e">ConnectionCollection event argument</param>
        // ------------------------------------------------------------------
        public virtual void RaiseOnToolDeactivate(ToolEventArgs e)
        {
            EventHandler <ToolEventArgs> handler = OnToolDeactivate;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Exemple #2
0
        /// <summary>
        /// Raises the <see cref="OnToolActivate"/> event
        /// </summary>
        /// <param name="e">ConnectionCollection event argument</param>
        protected virtual void RaiseOnToolActivate(ToolEventArgs e)
        {
            EventHandler <ToolEventArgs> handler = OnToolActivate;

            if (handler != null)
            {
                handler(this, e);
            }
        }