Foreign/RibbonLib_v2.6/RibbonGenerator/RibbonGenerator/CustomTool.cs
/// <summary>
/// Creates the report of the generation
/// </summary>
/// <returns>string in bytes</returns>
Creates the report of the generation
Creates the report of the generation
public override byte[] GenerateSummaryContent()
        {
            StringBuilder sb = new StringBuilder();
            sb.AppendLine("This file was generated. The .ribbon files contains are the localized ribbon ui dlls");
            sb.AppendLine(string.Format("Last execution: {0}", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")));
            sb.AppendLine(string.Format("Targets: {0}", this._manager.Targets.Count));
            sb.AppendLine("List of targets:");
            foreach (var target in this._manager.Targets)
            {
                sb.AppendLine(string.Format("- RibbonFilename: {0}, Localize: {1}, Culture: {2}, ResourceFilename: {3}",
                    target.RibbonFilename, target.Localize, target.CultureName, target.ResourceFilename));
            }
            sb.AppendLine("Output:");
            sb.AppendLine(_outputWindow.GetOutput());
            var result = ASCIIEncoding.Unicode.GetBytes(sb.ToString());
            return result;
        }
public override byte [ ] GenerateSummaryContent ( ) { StringBuilder sb = new StringBuilder ( ) ; sb . AppendLine ( " " ) ; sb . AppendLine ( string . Format ( " " , DateTime . Now . ToString ( " " ) ) ) ; sb . AppendLine ( string . Format ( " " , this . _manager . Targets . Count ) ) ; sb . AppendLine ( " " ) ; foreach ( var target in this . _manager . Targets ) { sb . AppendLine ( string . Format ( " " , target . RibbonFilename , target . Localize , target . CultureName , target . ResourceFilename ) ) ; } sb . AppendLine ( " " ) ; sb . AppendLine ( _outputWindow . GetOutput ( ) ) ; var result = ASCIIEncoding . Unicode . GetBytes ( sb . ToString ( ) ) ; return result ; }
Creates the report of the generation
Creates the report of the generation
string in bytes
string in bytes