|
ACOP.NET API
|
Some static utilities which could be of use when programming. More...
Classes | |
| class | ExceptionLogEntry |
Static Public Member Functions | |
| static void | AddScaleableControlsToPanel (Control panel) |
| add all controls on a container to a scaleable collection More... | |
| static void | ApplyColorGradient (Form form, Graphics g, Color color1, Color color2) |
| Apply a color gradient to the form specified. Use this method in a form's Paint event (hint: invalidate the form in the ResizeEnd event or call SetStyle(ControlStyles.ResizeRedraw, true) in FormLoad) More... | |
| static void | ApplyColorGradient (Form form, Graphics g, Color color1, Color color2, int angle) |
| Apply a color gradient to the form specified. Use this method in a form's Paint event (hint: invalidate the form in the ResizeEnd event or call SetStyle(ControlStyles.ResizeRedraw, true) in FormLoad) More... | |
| static void | ApplyColorGradient (Form form, Graphics g, Color color1, Color color2, int angle, int extent) |
| Apply a color gradient to the form specified. Use this method in a form's Paint event (hint: invalidate the form in the ResizeEnd event or call SetStyle(ControlStyles.ResizeRedraw, true) in FormLoad) More... | |
| static Boolean | CheckInstalledPrinter (string value) |
| Returns true if the printer is installed on the system More... | |
| static AcopComponent [] | GetAcopLinkComponents (Control parent) |
| Get an array of all AcopComponents on the parent container More... | |
| static AcopUserComponent [] | GetAcops (Control parent) |
| Get an array of all AcopControls on the parent container More... | |
| static String [] | GetAcopsByName (Control parent) |
| Get an array of all AcopControls by name on the parent container More... | |
| static String [] | GetBrowsingHierarchy (string protocol) |
| Get label names More... | |
| static String [] | GetConnectionFlags (String protocol) |
| Get a string array with all connection flags More... | |
| static String [] | GetContextList (String protocol) |
| Gets a list of available contexts More... | |
| static Object | GetDataObjectFromStringArray (string protocol, Type type, String[] data) |
| returns an appropriate data object created from the type information and string input provided More... | |
| static DataTypeName [] | GetDataTypeList (String protocol) |
| gives an array of data types supported by the given protocol More... | |
| static string | GetDefaultPrinter () |
| Returns a string with the default printer name. More... | |
| static String | GetDefaultProtocol () |
| Return the default protocol from config file More... | |
| static String [] | GetDeviceList (String protocol, String context, String subsystem, String server, String property) |
| Gets a list of devices exported by the server specified by the input parameters More... | |
| static DateTime | GetLocalTimefromUtc (double timeUtc) |
| Returns the given UTC timestamp as Local DateTime More... | |
| static string [] | GetPrintersList () |
| Returns a string array with all installed printer names. More... | |
| static String [] | GetPropertyList (String protocol, String context, String subsystem, String server, String device) |
| Gets a list of properties exported by the server specified by the input parameters More... | |
| static String [] | GetProtocolList () |
| Returns an array of all available plugins More... | |
| static String [] | GetServerList (String protocol, String context, String subsystem) |
| Gets a list of available servers specified by the parameters More... | |
| static String [] | GetSubSystemList (String protocol, String context) |
| Gets a list of available subsystems More... | |
| static double | GetUtcFromLocalTime (DateTime dataTime) |
| Returns the UTC time (seconds since 1970) of the given local time object as a double (with fractional seconds). More... | |
| static double | GetUtcNow () |
| Returns the current UTC time (seconds since 1970) as a double (with fractional seconds). More... | |
| static Boolean | HasDeviceQueryPrecedence (String protocol, String context, String subsystem, String server) |
| Indicates whether the targeted server has device query precedence More... | |
| static Boolean | HasPropertyQueryPrecedence (String protocol, String context, String subsystem, String server) |
| Indicates whether the targeted server has property query precedence More... | |
| static void | ResetAcopLinks (Form frm) |
| Resets all Acop Links contained on the given form More... | |
| static void | ScaleControlsOnPanel (Control panel, float scaleHeight, float scaleWidth) |
| resizes all controls on the panel according to the scale factors given More... | |
| static void | SetAddressDrag (Control ctrl, String address, String property) |
| Set the Drag event for a given control to drag an address with the default protocol Acop controls will be ignored! More... | |
| static void | SetAddressDrag (Control ctrl, String protocol, String address, String property) |
| Set the Drag event for a given control to drag an address Acop controls will be ignored! More... | |
| static void | SetComponentValue (Control ctrl, String property, Object value) |
| Sets the given property of the component to the value given (thread safe) More... | |
| static void | SetLabelText (Label lb, String text) |
| Set a text to the given label (Thread safe) More... | |
| static Boolean | StartApplication (String application) |
| starts the application with arguments given More... | |
| static Boolean | TextMatches (String pattern, String txt) |
| returns true if the input text contains the pattern More... | |
| static double [] | ToDoubleArray (object data) |
| Convert an object array to a double array More... | |
Some static utilities which could be of use when programming.
|
inlinestatic |
add all controls on a container to a scaleable collection
| panel | the container control (not necessarily a panel) |
ScaleControlsOnPanel
|
inlinestatic |
Apply a color gradient to the form specified. Use this method in a form's Paint event (hint: invalidate the form in the ResizeEnd event or call SetStyle(ControlStyles.ResizeRedraw, true) in FormLoad)
| form | the instance of the form to apply the color gradient |
| g | the form's graphics (from the form's paint event) |
| color1 | upper left hand color |
| color2 | lower right hand color |
|
inlinestatic |
Apply a color gradient to the form specified. Use this method in a form's Paint event (hint: invalidate the form in the ResizeEnd event or call SetStyle(ControlStyles.ResizeRedraw, true) in FormLoad)
| form | the instance of the form to apply the color gradient |
| g | the form's graphics (from the form's paint event) |
| color1 | start color; e.g. upper left hand color |
| color2 | end color; e.g. lower right hand color |
| angle | gradient angle in degrees |
|
inlinestatic |
Apply a color gradient to the form specified. Use this method in a form's Paint event (hint: invalidate the form in the ResizeEnd event or call SetStyle(ControlStyles.ResizeRedraw, true) in FormLoad)
| form | the instance of the form to apply the color gradient |
| g | the form's graphics (from the form's paint event) |
| color1 | upper left hand color |
| color2 | lower right hand color |
| angle | gradient angle in degrees |
| extent | the extent (percent) of the form to which the gradient is to be applied (only applied if 'angle' is one of 0, 90, 180, or -90). |
|
inlinestatic |
Returns true if the printer is installed on the system
| value |
References AcopUtils.GetPrintersList().
|
inlinestatic |
Get an array of all AcopComponents on the parent container
| parent | is the parent container |
Referenced by AcopUtils.ResetAcopLinks().
|
inlinestatic |
Get an array of all AcopControls on the parent container
| parent | is the parent container |
Referenced by AcopUtils.ResetAcopLinks().
|
inlinestatic |
Get an array of all AcopControls by name on the parent container
| parent | is the parent container |
|
inlinestatic |
Get label names
| protocol | the target protocol |
|
inlinestatic |
Get a string array with all connection flags
| protocol | the target protocol |
|
inlinestatic |
Gets a list of available contexts
| protocol | the target protocol |
|
inlinestatic |
returns an appropriate data object created from the type information and string input provided
| protocol | the targeted protocol which should make the object |
| type | the object Type to create |
| data | a string array to use in filling in the fields of the data object |
|
inlinestatic |
gives an array of data types supported by the given protocol
Both a canonical name (for browsing) and a full assembly name (for instantiation via reflection) are contained in the returned object array.
| protocol | target protocol |
|
inlinestatic |
Returns a string with the default printer name.
|
inlinestatic |
Return the default protocol from config file
|
inlinestatic |
Gets a list of devices exported by the server specified by the input parameters
| protocol | the target protocol |
| context | the target context |
| subsystem | the target subsystem |
| server | the target server |
| property | the target property |
|
inlinestatic |
Returns the given UTC timestamp as Local DateTime
| timeUtc | the UTC timestamp as double |
|
inlinestatic |
Returns a string array with all installed printer names.
Referenced by AcopUtils.CheckInstalledPrinter().
|
inlinestatic |
Gets a list of properties exported by the server specified by the input parameters
| protocol | the target protocol |
| context | the target context |
| subsystem | the target subsystem |
| server | the target server |
| device | the target device |
|
inlinestatic |
Returns an array of all available plugins
|
inlinestatic |
Gets a list of available servers specified by the parameters
| protocol | the target protocol |
| context | the target context |
| subsystem | the target subsystem |
|
inlinestatic |
Gets a list of available subsystems
| protocol | the target protocol |
| context | the target context |
|
inlinestatic |
Returns the UTC time (seconds since 1970) of the given local time object as a double (with fractional seconds).
| dataTime | A DateTime object containing the local time desired as a UTC double value. |
|
inlinestatic |
Returns the current UTC time (seconds since 1970) as a double (with fractional seconds).
Referenced by AcopAlarmsViewer.GetAlarmMessages().
|
inlinestatic |
Indicates whether the targeted server has device query precedence
if 'true' then a list of available properties should be acquired following any change of device.
| protocol | the target protocol |
| context | the target context |
| subsystem | the target subsystem |
| server | the target server |
|
inlinestatic |
Indicates whether the targeted server has property query precedence
if 'true' then a list of available devices should be acquired following any change of property.
| protocol | the target protocol |
| context | the target context |
| subsystem | the target subsystem |
| server | the target server |
|
inlinestatic |
Resets all Acop Links contained on the given form
TINE//TEST/SineServer/SineGen0/Amplitude
| frm | is the Form whose Acop Links should be reset |
References AcopUtils.GetAcopLinkComponents(), AcopUtils.GetAcops(), AcopComponent.Reset(), and AcopUserComponent.Reset().
|
inlinestatic |
resizes all controls on the panel according to the scale factors given
| panel | the container control (not necessarily a panel) |
| scaleHeight | vertical scale factor |
| scaleWidth | horizontal scale factor |
AddScaleableControlsToPanel
|
inlinestatic |
Set the Drag event for a given control to drag an address with the default protocol Acop controls will be ignored!
| ctrl | the control |
| address | the target address |
| property | the target property |
|
inlinestatic |
Set the Drag event for a given control to drag an address Acop controls will be ignored!
| ctrl | the control |
| protocol | the control system protocol (e.g. TINE or STARS) |
| address | the target address |
| property | the target property |
|
inlinestatic |
Sets the given property of the component to the value given (thread safe)
| ctrl | is the component whose property value is to be set |
| property | is the component's property which should receive the given value |
| value | is the targeted value |
|
inlinestatic |
Set a text to the given label (Thread safe)
| lb | |
| text |
|
inlinestatic |
starts the application with arguments given
| application | is a string containing the application to start followed by any arguments separated by spaces |
|
inlinestatic |
returns true if the input text contains the pattern
| pattern | a regular expression for comparison (preceed with a '-' to check for a negative match) |
| txt | the text which should contain the pattern or ('-' prefix) not contain the pattern |
|
inlinestatic |
Convert an object array to a double array
| data |
1.5.8