| 12345678910111213141516171819202122232425262728293031323334353637383940414243 | using System;using System.Windows.Media;using System.Windows.Media.Imaging;using Venus_RT.Instances;using MECF.Framework.RT.Core.Applications;namespace Venus_RT.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 = "Venus";        public const string DatabaseName = "venusdb";        public const ushort ANALOG_TRANS_RANGE = 4000;        public const string DeviceModelFileName = "DeviceModelVenus.xml";        private ImageSource _trayIcon;        private IRtLoader _loader;        public RtInstance()        {            _trayIcon = new BitmapImage(new Uri("pack://application:,,,/Venus_RT;component/defaultrt.ico"));            _loader = new ToolLoader();        }    }}
 |