Beispiel #1
0
        public override bool CanMergeWith(Transaction transaction)
        {
            if (!(transaction is VClipTimeTransaction))
            {
                return(false);
            }

            VClipTimeTransaction other = (VClipTimeTransaction)transaction;

            //In order to merge two transactions, the transactions must be operating on the same exact object and field.
            if (other.target.GetType() == target.GetType() &&
                other.target == target &&
                other.property == property)
            {
                return(true);
            }
            return(false);
        }
Beispiel #2
0
        public override void MergeIn(Transaction transaction)
        {
            VClipTimeTransaction other = (VClipTimeTransaction)transaction;

            newValue = other.newValue;
        }