SIL.FieldWorks.TE.NotesMainWnd.ShowStylesHelp C# (CSharp) Method

ShowStylesHelp() private method

Show help topic for currently selected style. (This method is also in TeMainWnd. I tried to move it out but the reference chain would have made it ugly).
private ShowStylesHelp ( SIL.FieldWorks.FwCoreDlgControls.StyleListItem item ) : void
item SIL.FieldWorks.FwCoreDlgControls.StyleListItem
return void
		private void ShowStylesHelp(StyleListItem item)
		{
			string helpTopic = null;

			if (item != null)
				helpTopic = TeStylesXmlAccessor.GetHelpTopicForStyle(item.Name);

			// I don't really like doing this, but oh well.
			if (string.IsNullOrEmpty(helpTopic) ||
				helpTopic.ToLower().StartsWith("help_topic_does_not_exist"))
			{
				helpTopic = TeResourceHelper.GetResourceString("kstidHelpTopicAllStyles");
			}

			Help.ShowHelp(new Label(), m_app.HelpFile, helpTopic);
		}