Exemplo n.º 1
0
        public override void Extend(Command possibleExt)
        {
            PropertyCommand <T, P> pc
                = possibleExt as PropertyCommand <T, P>;

            this.mNewVal = pc.mNewVal;
        }
Exemplo n.º 2
0
        public override bool IsExtendable(Command possibleExt)
        {
            if (!this.bExtendable)
            {
                return(false);
            }
            PropertyCommand <T, P> pc
                = possibleExt as PropertyCommand <T, P>;

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