12345678910111213141516171819202122232425262728293031323334353637383940 |
- using System;
- using System.Windows.Media;
- using System.Windows.Media.Imaging;
- using MECF.Framework.RT.Core.Applications;
- namespace EfemDualRT.Instances
- {
- 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 = "EfemDual";
- public const string DatabaseName = "efemdualdb";
-
- private ImageSource _trayIcon;
- private IRtLoader _loader;
- public RtInstance()
- {
- _trayIcon = new BitmapImage(new Uri("pack://application:,,,/MECF.Framework.Common;component/Resources/Logos/MyLogoTray.ico"));
- _loader = new ToolLoader();
- }
- }
- }
|