mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 21:06:30 +00:00
remove fix, todo: test
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
using Azaion.Common.Database;
|
||||
using MediatR;
|
||||
|
||||
namespace Azaion.Common.Events;
|
||||
|
||||
public class AnnotationCreatedEvent(Annotation annotation) : INotification
|
||||
{
|
||||
public Annotation Annotation { get; } = annotation;
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using Azaion.Common.Database;
|
||||
using MediatR;
|
||||
|
||||
namespace Azaion.Common.Events;
|
||||
|
||||
public class AnnotationsDeletedEvent(List<Annotation> annotations) : INotification
|
||||
{
|
||||
public List<Annotation> Annotations { get; set; } = annotations;
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using MediatR;
|
||||
|
||||
namespace Azaion.Common.DTO;
|
||||
|
||||
public class AnnotatorControlEvent(PlaybackControlEnum playbackControlEnum) : INotification
|
||||
{
|
||||
public PlaybackControlEnum PlaybackControl { get; set; } = playbackControlEnum;
|
||||
}
|
||||
|
||||
public class DatasetExplorerControlEvent(PlaybackControlEnum playbackControlEnum) : INotification
|
||||
{
|
||||
public PlaybackControlEnum PlaybackControl { get; set; } = playbackControlEnum;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using System.Windows.Input;
|
||||
using Azaion.Common.DTO;
|
||||
using MediatR;
|
||||
|
||||
namespace Azaion.Common.Events;
|
||||
|
||||
public class KeyEvent(object sender, KeyEventArgs args, WindowEnum windowEnum) : INotification
|
||||
{
|
||||
public object Sender { get; set; } = sender;
|
||||
public KeyEventArgs Args { get; set; } = args;
|
||||
public WindowEnum WindowEnum { get; } = windowEnum;
|
||||
}
|
||||
Reference in New Issue
Block a user