Class DS
设备服务
public static class DS
- Inheritance
-
DS
- Inherited Members
Properties
Config
设备配置
public static DeviceServiceConfig Config { get; }
Property Value
ConfigService
配置保存服务
public static IConfigService ConfigService { get; }
Property Value
Container
容器
public static ContainerManage Container { get; }
Property Value
LanguageService
语言服务
public static ILanguageService LanguageService { get; }
Property Value
MainWindow
主窗口服务
public static IMainWindowService MainWindow { get; }
Property Value
Mode
模式
public static DeviceMode Mode { get; set; }
Property Value
NotifyG
信息提示服务
public static INotifyService NotifyG { get; }
Property Value
PermissionService
工程服务
public static IPermissionService PermissionService { get; }
Property Value
ProductModelService
产品型号服务
public static IProductModelService ProductModelService { get; }
Property Value
ProjectService
工程服务
public static IProjectService ProjectService { get; }
Property Value
StationModule
工位
public static List<IStationBase> StationModule { get; }
Property Value
StoreService
商店服务
public static IStoreService StoreService { get; }
Property Value
Toolkits
工具
public static List<IToolkitBase> Toolkits { get; }
Property Value
UrlTutorial
教程RUL
public static string UrlTutorial { get; }
Property Value
UserService
用户服务
public static IUserService UserService { get; }
Property Value
Methods
DeleteOverdueFolderFile(string, double)
删除指定文件夹过期文件
public static void DeleteOverdueFolderFile(string dir, double indate)
Parameters
EnableStationControl(List<Control>, string, UserLevel?)
使能工位控件
public static bool EnableStationControl(List<Control> controls, string stationName, UserLevel? curUserLevel)
Parameters
Returns
GetControls(ControlCollection)
获取控件子控件集合
public static List<Control> GetControls(Control.ControlCollection controls)
Parameters
controlsControl.ControlCollection
Returns
GetInheritInterfaceName<T>()
获取继承接口的所有接口全名
public static List<string> GetInheritInterfaceName<T>()
Returns
Type Parameters
T接口类型
GetInterfaceTypeAlias<T>()
获取接口类型别名
public static string GetInterfaceTypeAlias<T>() where T : class
Returns
Type Parameters
T接口
Get<T>(string)
获取实例
public static T Get<T>(string name) where T : class
Parameters
namestring名称
Returns
- T
Type Parameters
T接口
Init()
初始化
public static bool Init()
Returns
ShowAboutView()
显示关于窗口
public static void ShowAboutView()
ShowDataQueryView()
显示数据查询窗口
public static void ShowDataQueryView()
ShowDebugView(IModuleBase)
显示调试对话框
public static void ShowDebugView(IModuleBase tookitModule)
Parameters
tookitModuleIModuleBase
ShowDebugView(IFindModelServe, string)
显示调试窗口
public static void ShowDebugView(IFindModelServe serve, string serveItemName)
Parameters
serveIFindModelServeserveItemNamestring
ShowDebugView(string)
显示模块对话框
public static void ShowDebugView(string tookitName)
Parameters
tookitNamestring
ShowDebugView(string, Control)
显示调试对话框
public static void ShowDebugView(string title, Control ctl)
Parameters
ShowDebugView(string, Control, SvgImage, bool)
显示模块对话框
public static void ShowDebugView(string title, Control ctl, SvgImage ico, bool topMost = false)
Parameters
ShowLogView()
显示日志窗口
public static void ShowLogView()
ShowSettingView()
显示设置窗口
public static void ShowSettingView()
ShowStationView(string)
显示工位调试窗口
public static void ShowStationView(string stationName = null)
Parameters
stationNamestring工位名称
UpdateStation<T>(string, T)
更新获取工位实例
public static T UpdateStation<T>(string stationName, T instance) where T : class, IStationBase
Parameters
stationNamestring工位名称
instanceT实例
Returns
- T
Type Parameters
T接口
UpdateToolkit<T>(string, T)
更新获取工具实例
public static T UpdateToolkit<T>(string toolName, T instance) where T : class, IToolkitBase
Parameters
toolNamestring工具名称
instanceT实例
Returns
- T
Type Parameters
T接口
Events
ModeChangeEvent
模式发生改变事件
public static event EventHandler<ModeChangeEventArgs> ModeChangeEvent