示例#1
0
        /// <summary>
        /// Called whever a transaction is commited.
        /// </summary>
        /// <param name="e"></param>
        public override void TransactionCommited(Microsoft.VisualStudio.Modeling.TransactionCommitEventArgs e)
        {
            base.TransactionCommited(e);

            if (!this.IsDirty)
            {
                this.IsDirty = true;
            }
        }
示例#2
0
        private void TransactionCommitted(object source, Microsoft.VisualStudio.Modeling.TransactionCommitEventArgs e)
        {
            if (currentModelContext != null)
            {
                currentModelContext.TransactionCommited(e);
            }

            if (e.Transaction != null)
            {
                if (e.Transaction.IsSerializing)
                {
                    return;
                }
            }

            /*
             * if (!e.Transaction.IsNested)
             * {
             *  this.Store.SetWritingLockAvailabilityAndWait(true);
             * }*/

            OnPropertyChanged("CanUndo");
            OnPropertyChanged("CanRedo");
        }
示例#3
0
 /// <summary>
 /// Called whever a transaction is commited.
 /// </summary>
 /// <param name="e"></param>
 public virtual void TransactionCommited(Microsoft.VisualStudio.Modeling.TransactionCommitEventArgs e)
 {
 }