Table of Contents

Class DS

Namespace
AT.Librarys.Container
Assembly
AT.Librarys.Container.dll

设备服务

public static class DS
Inheritance
DS
Inherited Members

Properties

Config

设备配置

public static DeviceServiceConfig Config { get; }

Property Value

DeviceServiceConfig

ConfigService

配置保存服务

public static IConfigService ConfigService { get; }

Property Value

IConfigService

Container

容器

public static ContainerManage Container { get; }

Property Value

ContainerManage

LanguageService

语言服务

public static ILanguageService LanguageService { get; }

Property Value

ILanguageService

MainWindow

主窗口服务

public static IMainWindowService MainWindow { get; }

Property Value

IMainWindowService

Mode

模式

public static DeviceMode Mode { get; set; }

Property Value

DeviceMode

NotifyG

信息提示服务

public static INotifyService NotifyG { get; }

Property Value

INotifyService

PermissionService

工程服务

public static IPermissionService PermissionService { get; }

Property Value

IPermissionService

ProductModelService

产品型号服务

public static IProductModelService ProductModelService { get; }

Property Value

IProductModelService

ProjectService

工程服务

public static IProjectService ProjectService { get; }

Property Value

IProjectService

StationModule

工位

public static List<IStationBase> StationModule { get; }

Property Value

List<IStationBase>

StoreService

商店服务

public static IStoreService StoreService { get; }

Property Value

IStoreService

Toolkits

工具

public static List<IToolkitBase> Toolkits { get; }

Property Value

List<IToolkitBase>

UrlTutorial

教程RUL

public static string UrlTutorial { get; }

Property Value

string

UserService

用户服务

public static IUserService UserService { get; }

Property Value

IUserService

Methods

DeleteOverdueFolderFile(string, double)

删除指定文件夹过期文件

public static void DeleteOverdueFolderFile(string dir, double indate)

Parameters

dir string

指定文件夹

indate double

有效期(天)

EnableStationControl(List<Control>, string, UserLevel?)

使能工位控件

public static bool EnableStationControl(List<Control> controls, string stationName, UserLevel? curUserLevel)

Parameters

controls List<Control>

用户控件集合

stationName string

工位名称

curUserLevel UserLevel?

当前用户等级

Returns

bool

GetControls(ControlCollection)

获取控件子控件集合

public static List<Control> GetControls(Control.ControlCollection controls)

Parameters

controls Control.ControlCollection

Returns

List<Control>

GetInheritInterfaceName<T>()

获取继承接口的所有接口全名

public static List<string> GetInheritInterfaceName<T>()

Returns

List<string>

接口全名集合

Type Parameters

T

接口类型

GetInterfaceTypeAlias<T>()

获取接口类型别名

public static string GetInterfaceTypeAlias<T>() where T : class

Returns

string

Type Parameters

T

接口

Get<T>(string)

获取实例

public static T Get<T>(string name) where T : class

Parameters

name string

名称

Returns

T

Type Parameters

T

接口

Init()

初始化

public static bool Init()

Returns

bool

ShowAboutView()

显示关于窗口

public static void ShowAboutView()

ShowDataQueryView()

显示数据查询窗口

public static void ShowDataQueryView()

ShowDebugView(IModuleBase)

显示调试对话框

public static void ShowDebugView(IModuleBase tookitModule)

Parameters

tookitModule IModuleBase

ShowDebugView(IFindModelServe, string)

显示调试窗口

public static void ShowDebugView(IFindModelServe serve, string serveItemName)

Parameters

serve IFindModelServe
serveItemName string

ShowDebugView(string)

显示模块对话框

public static void ShowDebugView(string tookitName)

Parameters

tookitName string

ShowDebugView(string, Control)

显示调试对话框

public static void ShowDebugView(string title, Control ctl)

Parameters

title string

标题名称

ctl Control

控件

ShowDebugView(string, Control, SvgImage, bool)

显示模块对话框

public static void ShowDebugView(string title, Control ctl, SvgImage ico, bool topMost = false)

Parameters

title string
ctl Control
ico SvgImage
topMost bool

ShowLogView()

显示日志窗口

public static void ShowLogView()

ShowSettingView()

显示设置窗口

public static void ShowSettingView()

ShowStationView(string)

显示工位调试窗口

public static void ShowStationView(string stationName = null)

Parameters

stationName string

工位名称

UpdateStation<T>(string, T)

更新获取工位实例

public static T UpdateStation<T>(string stationName, T instance) where T : class, IStationBase

Parameters

stationName string

工位名称

instance T

实例

Returns

T

Type Parameters

T

接口

UpdateToolkit<T>(string, T)

更新获取工具实例

public static T UpdateToolkit<T>(string toolName, T instance) where T : class, IToolkitBase

Parameters

toolName string

工具名称

instance T

实例

Returns

T

Type Parameters

T

接口

Events

ModeChangeEvent

模式发生改变事件

public static event EventHandler<ModeChangeEventArgs> ModeChangeEvent

Event Type

EventHandler<ModeChangeEventArgs>