Пример #1
0
 protected void STNodeEidtorDisConnected(STNodeEditorOptionEventArgs e)
 {
     if (this._Owner == null)
     {
         return;
     }
     if (this._Owner.Owner == null)
     {
         return;
     }
     this._Owner.Owner.OnOptionDisConnected(e);
 }
Пример #2
0
        /// <summary>
        /// The current Option starts to disconnect the target Option
        /// </summary>
        /// <param name="op">Option to be disconnected</param>
        /// <returns>Are you allowed to continue the operation?</returns>
        protected virtual bool DisConnectingOption(STNodeOption op)
        {
            if (this._Owner == null)
            {
                return(false);
            }
            if (this._Owner.Owner == null)
            {
                return(false);
            }
            STNodeEditorOptionEventArgs e = new STNodeEditorOptionEventArgs(op, this, ConnectionStatus.DisConnecting);

            this._Owner.Owner.OnOptionDisConnecting(e);
            this.OnDisConnecting(new STNodeOptionEventArgs(true, op, ConnectionStatus.DisConnecting));
            op.OnDisConnecting(new STNodeOptionEventArgs(false, this, ConnectionStatus.DisConnecting));
            return(e.Continue);
        }