/// <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; } }
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"); }
/// <summary> /// Called whever a transaction is commited. /// </summary> /// <param name="e"></param> public virtual void TransactionCommited(Microsoft.VisualStudio.Modeling.TransactionCommitEventArgs e) { }