Click or drag to resize

ISmartObjectLoadSmartObjects(ISmartObject) Method

Load the smart objects to this device that are already loaded for the specified device.

Namespace: Crestron.SimplSharpPro.DeviceSupport
Assembly: SimplSharpPro (in SimplSharpPro.dll) Version: 2.21.121
Syntax
C#
uint LoadSmartObjects(
	ISmartObject deviceWithSmartObjects
)

Parameters

deviceWithSmartObjects  ISmartObject
Device to gather SmartObject information from.

Return Value

UInt32
The number of smart objects loaded.
Exceptions
ExceptionCondition
ArgumentExceptionNo SmartObjects loaded for the specified device.
InvalidOperationExceptionSmartObjects are already loaded for this device.
Example
The following will first show an Xpanel loading SmartObjects off the file system. The second panel shares the same SmartObject information of the first.
C#
//Create a panel and load up SmartObjects
var sgPanel = new XpanelForSmartGraphics(0x05, this);
sgPanel.LoadSmartObjects(Directory.GetApplicationDirectory() + "\\xPanel.sgd");


//Create a second panel and load same SmartObject information.
var secondSgPanel = new XpanelForSmartGraphics(0x06, this); 
secondSgPanel.LoadSmartObjects(sgPanel);

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also