SIL.FieldWorks.XWorks.FwXWindow.HandleUndoResult C# (CSharp) Method

HandleUndoResult() private method

private HandleUndoResult ( UndoResult ures, bool fPrivate ) : void
ures UndoResult
fPrivate bool
return void
		private void HandleUndoResult(UndoResult ures, bool fPrivate)
		{
			// Enhance JohnT: may want to display messages for kuresFailed, kuresError
			if (ures != UndoResult.kuresSuccess)
			{

				if (!fPrivate && m_app != null)
				{
					// currently implemented, this will cause this app to do a master refresh,
					m_app.Synchronize(SyncMsg.ksyncUndoRedo);
				}
				else
				{
					// EricP/JohnT -- this path will probably never be called in a production
					// context, since we'll have an FwApp. And even in the case of tests
					// taking this path, we wonder if we should issue a "MasterRefresh" instead
					m_mediator.SendMessage("Refresh", this);
				}
			}
		}
FwXWindow