void AnalysisTransactionManager_AfterCommandComplete(object sender, TransactionCommandResultEventArgs e)
 {
     if (e.Connection == this.Connection)
     {
         if (this.Dispatcher.CheckAccess())
         {
             this.IsEnabled = OlapTransactionManager.HasPendingChanges(this.Connection);// !e.Succeess;
         }
         else
         {
             this.Dispatcher.BeginInvoke(() => this.IsEnabled = OlapTransactionManager.HasPendingChanges(this.Connection));
         }
     }            
 }
		protected virtual void AnalysisTransactionManager_AfterCommandComplete(object sender, TransactionCommandResultEventArgs e)
		{
			if (e.Connection == this.Connection)
			{
				PivotGrid.LocalChanges.Clear();
				Refresh();
			}
		}