RtInstance.cs 1001 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. using System;
  2. using System.Windows.Media;
  3. using System.Windows.Media.Imaging;
  4. using MECF.Framework.RT.Core.Applications;
  5. namespace EfemDualRT.Instances
  6. {
  7. class RtInstance : IRtInstance
  8. {
  9. string IRtInstance.SystemName => SystemName;
  10. public bool EnableNotifyIcon => true;
  11. public bool KeepRunningAfterUnknownException => false;
  12. public ImageSource TrayIcon => _trayIcon;
  13. public bool DefaultShowBackendWindow => false;
  14. public IRtLoader Loader => _loader;
  15. string IRtInstance.DatabaseName => DatabaseName;
  16. public const string SystemName = "EfemDual";
  17. public const string DatabaseName = "efemdualdb";
  18. private ImageSource _trayIcon;
  19. private IRtLoader _loader;
  20. public RtInstance()
  21. {
  22. _trayIcon = new BitmapImage(new Uri("pack://application:,,,/MECF.Framework.Common;component/Resources/Logos/MyLogoTray.ico"));
  23. _loader = new ToolLoader();
  24. }
  25. }
  26. }