Working comments with CommentPool.
This commit is contained in:
@ -37,17 +37,7 @@ namespace zaaReloaded2.Formatter
|
||||
/// <summary>
|
||||
/// Gets or sets the Settings that this Formatter works with.
|
||||
/// </summary>
|
||||
public Settings Settings
|
||||
{
|
||||
get { return _settings; }
|
||||
set
|
||||
{
|
||||
_settings = value;
|
||||
// Listen to the FillInComment event of
|
||||
_settings.Elements.OfType<Items>().ToList().ForEach(
|
||||
items => items.FillInComment += items_FillInComment);
|
||||
}
|
||||
}
|
||||
public Settings Settings { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the <see cref="Laboratory"/> that shall be
|
||||
@ -93,17 +83,6 @@ namespace zaaReloaded2.Formatter
|
||||
|
||||
#endregion
|
||||
|
||||
#region Event
|
||||
|
||||
/// <summary>
|
||||
/// Relays the FillInComment events of any Items elements
|
||||
/// in the Settings, which in turn relay the FillInComment
|
||||
/// events of their collected items' ItemComments.
|
||||
/// </summary>
|
||||
public event EventHandler<ItemCommentEventArgs> FillInComment;
|
||||
|
||||
#endregion
|
||||
|
||||
#region Constructors
|
||||
|
||||
public Formatter()
|
||||
@ -431,23 +410,6 @@ namespace zaaReloaded2.Formatter
|
||||
|
||||
#endregion
|
||||
|
||||
#region Private methods
|
||||
|
||||
/// <summary>
|
||||
/// Relays the FillInComment event of Items elements in the
|
||||
/// Settings.
|
||||
/// </summary>
|
||||
void items_FillInComment(object sender, ItemCommentEventArgs e)
|
||||
{
|
||||
EventHandler<ItemCommentEventArgs> h = FillInComment;
|
||||
if (h != null)
|
||||
{
|
||||
h(this, e);
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Protected properties
|
||||
|
||||
/// <summary>
|
||||
@ -459,7 +421,6 @@ namespace zaaReloaded2.Formatter
|
||||
|
||||
#region Fields
|
||||
|
||||
Settings _settings;
|
||||
TimePointFormatterDictionary _timePointFormatters;
|
||||
Laboratory _laboratory;
|
||||
DocumentWriter _primaryBuffer;
|
||||
|
Reference in New Issue
Block a user