Wire up notification system for ContentChanged -> UI listeners

This commit is contained in:
John Lewin 2017-09-29 17:25:50 -07:00
parent 2b1fcff98b
commit 123f21dcab
5 changed files with 52 additions and 1 deletions

View file

@ -27,6 +27,7 @@ of the authors and should not be interpreted as representing official policies,
either expressed or implied, of the FreeBSD Project.
*/
using System;
using System.Collections.Generic;
using MatterHackers.Agg.Image;
@ -34,6 +35,13 @@ namespace MatterHackers.MatterControl.Library
{
public abstract class WritableContainer : LibraryContainer, ILibraryWritableContainer
{
public event EventHandler<ItemChangedEventArgs> ItemContentChanged;
public virtual void OnItemContentChanged(ItemChangedEventArgs args)
{
ItemContentChanged?.Invoke(this, args);
}
public virtual void Add(IEnumerable<ILibraryItem> items)
{
}