using System; using System.Windows.Media; using System.Windows.Media.Imaging; using MECF.Framework.RT.Core.Applications; namespace EFEM.RT.Systems { 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 = "EFEM"; public const string DatabaseName = "efemdb"; public const string InterlockFileName = "InterlockAitexSorter.xml"; public const string DeviceModelFileName = "DeviceModel.xml"; private ImageSource _trayIcon; private IRtLoader _loader; public RtInstance() { _trayIcon = new BitmapImage(new Uri("pack://application:,,,/Resources/AitexSorterRT.ico")); _loader = new ToolLoader(); } } }