From 5e942420f4b7e86300d5407e698a3a04e596222f Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Fri, 12 Jun 2020 11:12:44 -0500 Subject: [PATCH] Move Event Args and Handlers to their own folder --- .../Communication/Events/QEventArgs.cs | 72 +++++++++++++++++++ .../Communication/Events/QEventHandlers.cs | 16 +++++ 2 files changed, 88 insertions(+) create mode 100644 qController.Standard/Classes/Communication/Events/QEventArgs.cs create mode 100644 qController.Standard/Classes/Communication/Events/QEventHandlers.cs diff --git a/qController.Standard/Classes/Communication/Events/QEventArgs.cs b/qController.Standard/Classes/Communication/Events/QEventArgs.cs new file mode 100644 index 0000000..038d48d --- /dev/null +++ b/qController.Standard/Classes/Communication/Events/QEventArgs.cs @@ -0,0 +1,72 @@ +using System; +using System.Collections.Generic; +using System.Text; +using qController.QItems; + +namespace qController.Communication +{ + public class CueEventArgs : EventArgs + { + public QCue Cue + { + get; + set; + } + } + + public class WorkspaceEventArgs : EventArgs + { + public QWorkspace UpdatedWorkspace + { + get; + set; + } + } + + public class PlaybackPositionArgs : EventArgs + { + public string PlaybackPosition + { + get; + set; + } + } + + public class ConnectEventArgs : EventArgs + { + public string Status + { + get; + set; + } + + public string WorkspaceId + { + get; + set; + } + } + + public class WorkspaceInfoArgs : EventArgs + { + public List WorkspaceInfo + { + get; + set; + } + } + + public class ChildrenEventArgs : EventArgs + { + public string cue_id + { + get; + set; + } + public List children + { + get; + set; + } + } +} diff --git a/qController.Standard/Classes/Communication/Events/QEventHandlers.cs b/qController.Standard/Classes/Communication/Events/QEventHandlers.cs new file mode 100644 index 0000000..a7f43d6 --- /dev/null +++ b/qController.Standard/Classes/Communication/Events/QEventHandlers.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace qController.Communication +{ + public delegate void SelectedCueUpdatedHandler(object source, CueEventArgs args); + public delegate void WorkspaceUpdatedHandler(object source, WorkspaceEventArgs args); + public delegate void CueInfoUpdatedHandler(object source, CueEventArgs args); + public delegate void PlaybackPositionUpdatedHandler(object source, PlaybackPositionArgs args); + public delegate void ConnectionStatusHandler(object source, ConnectEventArgs args); + public delegate void ChildrenUpdateHandler(object source, ChildrenEventArgs args); + public delegate void WorkspaceDisconnectHandler(object source, EventArgs args); + public delegate void WorkspaceInfoHandler(object source, WorkspaceInfoArgs args); + public delegate void WorkspaceLoadErrorHandler(object source, WorkspaceEventArgs args); +}