Example #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;
 }
Example #2
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);
        }
Example #3
0
 internal static HelpFileHelpInfo GetHelpInfo(
     string name,
     string text,
     string filename)
 {
     using (HelpFileHelpInfo.tracer.TraceMethod())
     {
         if (string.IsNullOrEmpty(name))
         {
             return((HelpFileHelpInfo)null);
         }
         HelpFileHelpInfo helpFileHelpInfo = new HelpFileHelpInfo(name, text, filename);
         if (string.IsNullOrEmpty(helpFileHelpInfo.Name))
         {
             return((HelpFileHelpInfo)null);
         }
         helpFileHelpInfo.AddCommonHelpProperties();
         return(helpFileHelpInfo);
     }
 }
Example #4
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;
        }