Ejemplo n.º 1
0
 internal static HelpFileHelpInfo GetHelpInfo(string name, string text, string filename)
 {
     if (string.IsNullOrEmpty(name))
     {
         return null;
     }
     HelpFileHelpInfo info = new HelpFileHelpInfo(name, text, filename);
     if (string.IsNullOrEmpty(info.Name))
     {
         return null;
     }
     info.AddCommonHelpProperties();
     return info;
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Get help info based on name, text and filename
        /// </summary>
        /// <param name="name">help topic name</param>
        /// <param name="text">help text</param>
        /// <param name="filename">file name that contains the help text</param>
        /// <returns>HelpFileHelpInfo object created based on information provided</returns>
        internal static HelpFileHelpInfo GetHelpInfo(string name, string text, string filename)
        {
            if (String.IsNullOrEmpty(name))
                return null;

            HelpFileHelpInfo helpfileHelpInfo = new HelpFileHelpInfo(name, text, filename);

            if (String.IsNullOrEmpty(helpfileHelpInfo.Name))
                return null;

            helpfileHelpInfo.AddCommonHelpProperties();

            return helpfileHelpInfo;
        }