RtInstance.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. using System;
  2. using System.Windows.Media;
  3. using System.Windows.Media.Imaging;
  4. using VirgoRT.Instances;
  5. using MECF.Framework.RT.Core.Applications;
  6. namespace SorterRT.Modules
  7. {
  8. class RtInstance : IRtInstance
  9. {
  10. string IRtInstance.SystemName => SystemName;
  11. public bool EnableNotifyIcon => true;
  12. public bool KeepRunningAfterUnknownException => false;
  13. public ImageSource TrayIcon => _trayIcon;
  14. public bool DefaultShowBackendWindow => false;
  15. public IRtLoader Loader => _loader;
  16. string IRtInstance.DatabaseName => DatabaseName;
  17. public const string SystemName = "Virgo";
  18. public const string DatabaseName = "virgodb";
  19. public const ushort ANALOG_TRANS_RANGE = 8000;
  20. public const string DeviceModelFileName = "DeviceModelVirgo.xml";
  21. private ImageSource _trayIcon;
  22. private IRtLoader _loader;
  23. public RtInstance()
  24. {
  25. _trayIcon = new BitmapImage(new Uri("pack://application:,,,/VirgoRT;component/Resources/default_rt.ico"));
  26. _loader = new ToolLoader();
  27. }
  28. }
  29. }