public override void Extend(Command possibleExt) { PropertyCommand <T, P> pc = possibleExt as PropertyCommand <T, P>; this.mNewVal = pc.mNewVal; }
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); }