diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-03-05 16:58:38 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-03-05 16:58:38 +0200 |
| commit | a4d52e6779fc90934c22b94e53d41d42bef3626e (patch) | |
| tree | 5b091a4a246703731b20c9cc30d524fd63d56851 /Software/Visual_Studio/PPC/Tango.PPC.Common/PPCViewModel.cs | |
| parent | 499f4facfe296d984a44e9ce0b6e1eb23ba8d644 (diff) | |
| download | Tango-a4d52e6779fc90934c22b94e53d41d42bef3626e.tar.gz Tango-a4d52e6779fc90934c22b94e53d41d42bef3626e.zip | |
Some improvements to PPC.
Fixed issue with database constraint of dispensers <=> IDS_PACKS.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/PPCViewModel.cs')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.Common/PPCViewModel.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCViewModel.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCViewModel.cs index b9a0d8483..5e584f891 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCViewModel.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/PPCViewModel.cs @@ -177,6 +177,15 @@ namespace Tango.PPC.Common } /// <summary> + /// Raises the specified message using the default <see cref="TangoMessenger"/>. + /// </summary> + /// <typeparam name="T"></typeparam> + protected void RaiseMessage<T>() where T : class + { + TangoMessenger.Default.Send<T>(Activator.CreateInstance<T>()); + } + + /// <summary> /// Registers a message handle for the specified message type T. /// </summary> /// <typeparam name="T"></typeparam> |
