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

Install() public method

public Install ( DataTree parent ) : void
parent DataTree
return void
		public override void Install(DataTree parent)
		{
			CheckDisposed();
			// Sometimes we get a spurious "out of memory" error while trying to create a handle for the
			// RootSite if its cache isn't set before we add it to its parent.
			RootSite rs = RootSite;
			rs.Cache = Cache;
			// JT: seems to actually cause a problem if we replace it with itself. RootSite probably needs a fix.
			if (rs.StyleSheet != parent.StyleSheet)
				rs.StyleSheet = parent.StyleSheet;

			base.Install(parent);

			rs.SetAccessibleName(this.Label);
		}