Пример #1
0
        public override void Extend(Command possibleExt)
        {
            JazzPropertyCommand <T, P> jpc
                = possibleExt as JazzPropertyCommand <T, P>;

            this.mNewVal = jpc.mNewVal;
        }
Пример #2
0
        public override bool IsExtendable(Command possibleExt)
        {
            if (!this.bExtendable)
            {
                return(false);
            }
            JazzPropertyCommand <T, P> jpc
                = possibleExt as JazzPropertyCommand <T, P>;

            if (jpc == null || jpc.mContainer != this.mContainer ||
                !sTEC.Equals(jpc.mThing, this.mThing) ||
                !string.Equals(jpc.mPropName, this.mPropName) ||
                sPEC.Equals(jpc.mNewVal, this.mOldVal))
            {
                return(false);
            }
            return(true);
        }