Show / Hide Table of Contents

Class Base

Inheritance
System.Object
Base
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Virinco.WATS.Teststand.MES
Assembly: WATS_Teststand_Support.dll
Syntax
public static class Base

Methods

GetMesServerSettings(out String[], out Boolean[], out Int32[], String[], String[], String[])

Declaration
public static void GetMesServerSettings(out string[] stringValues, out bool[] boolValues, out int[] numberValues, string[] stringKeys = null, string[] boolKeys = null, string[] numberKeys = null)
Parameters
Type Name Description
System.String[] stringValues
System.Boolean[] boolValues
System.Int32[] numberValues
System.String[] stringKeys
System.String[] boolKeys
System.String[] numberKeys

GetUserSettings(String, out Base.WATS_UserSettings)

If TS login user name exist as WATS user name at the server, User settings are downloaded.

Declaration
public static bool GetUserSettings(string UserName, out Base.WATS_UserSettings UserSettings)
Parameters
Type Name Description
System.String UserName

Add the WATS Username to search for (Users are edited at the WATS Server)

Base.WATS_UserSettings UserSettings

Returns user settings. Compatible with the WATS_User_Settings data type.

Returns
Type Description
System.Boolean

True if Username exists at the WATS server

TranslateArray(String, String[])

Translate an Array using the WATS language module

Declaration
public static string[] TranslateArray(string CultureCode, string[] englishText)
Parameters
Type Name Description
System.String CultureCode

Language Culture Name to translate (e.g. “zh-CN”)

System.String[] englishText

Input an array of English text for translation

Returns
Type Description
System.String[]

Returns an array of translated text. If translation is not available, returns the English text

TranslateStandardText(String)

Translate standard text listed in the “StandardText.txt” file in the WATS folder (translation module in WATS)

Declaration
public static string[] TranslateStandardText(string CultureCode)
Parameters
Type Name Description
System.String CultureCode

Language Culture Name to translate (e.g. “zh-CN”)

Returns
Type Description
System.String[]

Returns an array of translated text. If translation is not available, returns the English text

TranslateString(String, String, String[])

Translate a custom text/string (translation module in WATS)

Declaration
public static string TranslateString(string CultureCode, string englishText, string[] arguments)
Parameters
Type Name Description
System.String CultureCode

Language Culture Name to translate (e.g. “zh-CN”)

System.String englishText

Input a string of English text for translation. Use {number} and “arguments” to section your string with none translate sections. E.g. “Do not translate {0} this time” where {0} refers to arguments[0]. The text in arguments[0] will be replaced {0} when returned, the rest of the sting will be translated.

System.String[] arguments

Arguments[#] will replaced section {#} in text and not be translated.

Returns
Type Description
System.String

Returns the translated text. If translation is not available, returns the English text

In This Article
Back to top View how-to articles, videos and more at support.virinco.com Send comments on this topic to support@virinco.com