public override void OnPropertyChanged(string name)
{
CheckDisposed();
// When switching tools, the Cache should be saved. Persisting the Undo/Redo buffer between tools can be confusing
// Fixes (LT-4650)
if (name == "currentContentControl")
{
Cache.DomainDataByFlid.GetActionHandler().Commit();
// If we change tools, the FindReplaceDlg is no longer valid, as its rootsite
// is part of the previous tool, and will thus be disposed. See FWR-2080.
if (this.OwnedForms.Length > 0 && this.OwnedForms[0] is FwFindReplaceDlg)
this.OwnedForms[0].Close();
}
base.OnPropertyChanged(name);
}