void ReleaseDesignerOutlets()
        {
            if (ArrowImage != null)
            {
                ArrowImage.Dispose();
                ArrowImage = null;
            }

            if (DescriptionBottomConstraint != null)
            {
                DescriptionBottomConstraint.Dispose();
                DescriptionBottomConstraint = null;
            }

            if (HelpDescription != null)
            {
                HelpDescription.Dispose();
                HelpDescription = null;
            }

            if (HelpTitle != null)
            {
                HelpTitle.Dispose();
                HelpTitle = null;
            }

            if (TextContainerView != null)
            {
                TextContainerView.Dispose();
                TextContainerView = null;
            }

            if (TitleBottomConstraint != null)
            {
                TitleBottomConstraint.Dispose();
                TitleBottomConstraint = null;
            }
        }
Example #2
0
		/// <summary>
		/// Adds a title to the collection
		/// </summary>
		/// <param name="titleId">The id of the title</param>
		/// <param name="titleLangId">The language id of the title</param>
		/// <param name="titleFileName">The name of the HxS file containing the title</param>
		/// <param name="indexFileName">The name of the HxI file containing the title's index</param>
		public void AddTitle( string titleId, int titleLangId, string titleFileName, string indexFileName )
		{
			HelpTitle title = new HelpTitle();

			title.TitleId = titleId;
			title.LangId = titleLangId;
			title.FileName = titleFileName;
			title.IndexFileName = indexFileName;

			titles.Add( title );
		}