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

ReconstructViews() private method

Call RefreshDisplay on the passed in control if it has a public (no argument) method of that name. Recursively call ReconstructViews on each control that the given control contains.
private ReconstructViews ( Control control ) : void
control System.Windows.Forms.Control
return void
		private void ReconstructViews(Control control)
		{
			bool childrenRefreshed = false;

			var refreshable = control as IRefreshableRoot;
			if (refreshable != null)
			{
				childrenRefreshed = refreshable.RefreshDisplay();
			}
			if (!childrenRefreshed)
			{
				foreach (Control c in control.Controls)
					ReconstructViews(c);
			}
		}
FwXWindow