12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- using System;
- using System.Windows.Media;
- using System.Windows.Media.Imaging;
- using VirgoRT.Instances;
- using MECF.Framework.RT.Core.Applications;
- namespace SorterRT.Modules
- {
- class RtInstance : IRtInstance
- {
- string IRtInstance.SystemName => SystemName;
-
- public bool EnableNotifyIcon => true;
-
- public bool KeepRunningAfterUnknownException => false;
- public ImageSource TrayIcon => _trayIcon;
- public bool DefaultShowBackendWindow => false;
- public IRtLoader Loader => _loader;
- string IRtInstance.DatabaseName => DatabaseName;
- public const string SystemName = "Virgo";
- public const string DatabaseName = "virgodb";
- public const ushort ANALOG_TRANS_RANGE = 8000;
- public const string DeviceModelFileName = "DeviceModelVirgo.xml";
- private ImageSource _trayIcon;
- private IRtLoader _loader;
- public RtInstance()
- {
- _trayIcon = new BitmapImage(new Uri("pack://application:,,,/VirgoRT;component/Resources/default_rt.ico"));
- _loader = new ToolLoader();
- }
- }
- }
|