Working comments with CommentPool.
This commit is contained in:
@ -21,6 +21,7 @@ using System.Linq;
|
||||
using System.Text;
|
||||
using Microsoft.Office.Interop.Word;
|
||||
using zaaReloaded2.LabModel;
|
||||
using zaaReloaded2.Controller.Comments;
|
||||
|
||||
namespace zaaReloaded2.Formatter
|
||||
{
|
||||
@ -174,15 +175,24 @@ namespace zaaReloaded2.Formatter
|
||||
value = LabItem.Value;
|
||||
}
|
||||
|
||||
string comment = String.Empty;
|
||||
if (Comment != null)
|
||||
{
|
||||
comment = Comment.BuildComment();
|
||||
if (comment != String.Empty) comment = " " + comment;
|
||||
}
|
||||
|
||||
string name = IncludeMaterial ? LabItem.QualifiedName : LabItem.Name;
|
||||
|
||||
|
||||
string output =
|
||||
String.Format(
|
||||
"{0} {1}{2}{3}",
|
||||
"{0} {1}{2}{3}{4}",
|
||||
name,
|
||||
value,
|
||||
unit,
|
||||
reference
|
||||
reference,
|
||||
comment
|
||||
);
|
||||
if (!LabItem.IsNormal)
|
||||
{
|
||||
|
Reference in New Issue
Block a user