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