123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- using System;
- using System.Windows.Media;
- using System.Windows.Media.Imaging;
- using Aitex.Common.Util;
- using Aitex.Core.WCF;
- using Venus_Simulator.Views;
- using MECF.Framework.UI.Core.Applications;
- using System.Configuration;
- using Venus_Core;
- namespace Venus_Simulator.Instances
- {
- class UiInstance : IUiInstance
- {
- public string LayoutFile
- {
- get
- {
- var section = ConfigurationManager.GetSection("customSettings") as System.Collections.Specialized.NameValueCollection;
- ConfigType type = (ConfigType)Convert.ToInt32(section["SimulatorType"]);
- switch (type)
- {
- case ConfigType.VenusSE:
- return PathManager.GetCfgDir() + "UILayout_SE.xml";
- case ConfigType.VenusDE:
- return PathManager.GetCfgDir() + "UILayout_DE.xml";
- default:
- return PathManager.GetCfgDir() + "UILayout.xml";
- }
- }
- }
- public string SystemName => "Simulator";
- public bool EnableAccountModule => false;
- public ImageSource MainIcon { get; set; }
- public bool MaxSizeShow { get; } = true;
- public UiInstance()
- {
- MainIcon = new BitmapImage(new Uri("pack://application:,,,/Venus_Simulator;component/Resources/simulator.ico"));
- }
- }
- }
|