Wire up notification system for ContentChanged -> UI listeners
This commit is contained in:
parent
2b1fcff98b
commit
123f21dcab
5 changed files with 52 additions and 1 deletions
|
|
@ -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)
|
||||
{
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue