Foreign/RibbonLib_v2.6/RibbonGenerator/RibbonGenerator/CustomTool.cs
/// <summary>
/// Generates the content of the ribbon ui dll.
/// </summary>
/// <param name="element">the target element</param>
/// <returns>the ribbon ui dll in bytes</returns>
Generates the content of the ribbon ui dll.
Generates the content of the ribbon ui dll .
public override byte[] GenerateContent(Target element)
        {
            try
            {
                Util.LogMessage("GenerateContent with target '{0}'", element.RibbonFilename);
                byte[] result = _manager.CreateRibbon(element);
                return result;
            }
            catch (Exception ex)
            {
                string message = string.Format("Generation failed. Error: {0}", ex.Message);
                this.GeneratorProgress.GeneratorError(Convert.ToInt32(false), (uint)0, message, (uint)0, (uint)0);
                throw ex;
            }
        }
public override byte [ ] GenerateContent ( Target element ) { try { Util . LogMessage ( " " , element . RibbonFilename ) ; byte [ ] result = _manager . CreateRibbon ( element ) ; return result ; } catch ( Exception ex ) { string message = string . Format ( " " , ex . Message ) ; this . GeneratorProgress . GeneratorError ( Convert . ToInt32 ( false ) , ( uint ) 0 , message , ( uint ) 0 , ( uint ) 0 ) ; throw ex ; } }
Generates the content of the ribbon ui dll.
Generates the content of the ribbon ui dll .
the ribbon ui dll in bytes
the ribbon ui dll in bytes
element
Target
the target element
the target element