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

OnPropertyChanged() public method

public OnPropertyChanged ( string name ) : void
name string
return void
		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);
		}
FwXWindow