XCore.MultiPane.PrepareToGoAway C# (CSharp) Method

PrepareToGoAway() public method

public PrepareToGoAway ( ) : bool
return bool
		public bool PrepareToGoAway()
		{
			CheckDisposed();

			//we are ready to go away if our two controls are ready to go away
			bool firstControlReady = true;
			if (FirstControl != null)
				firstControlReady = ((IxCoreContentControl)FirstControl).PrepareToGoAway();
			bool secondControlReady = true;
			if (SecondControl != null)
				secondControlReady = ((IxCoreContentControl)SecondControl).PrepareToGoAway();

			return firstControlReady && secondControlReady;
		}