SIL.FieldWorks.Common.Framework.DetailControls.ViewSlice.AboutToDiscard C# (CSharp) Method

AboutToDiscard() public method

Somehow a slice (I think one that has never scrolled to become visible?) can get an OnLoad message for its view in the course of deleting it from the parent controls collection. This can be bad (at best it's a waste of time to do the Layout in the OnLoad, but it can be actively harmful if the object the view is displaying has been deleted). So suppress it.
public AboutToDiscard ( ) : void
return void
		public override void AboutToDiscard()
		{
			CheckDisposed();
			base.AboutToDiscard ();
			RootSite rs = RootSite;
			if (rs != null)
				rs.AboutToDiscard();
		}
	}