Click or drag to resize

Tpmc9BaseLoadSmartObjects(ISmartObject) Method

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

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

Parameters

deviceWithSmartObjects  ISmartObject
Device to gather SmartObject information from.

Return Value

UInt32
The number of smart objects loaded.

Implements

ISmartObjectLoadSmartObjects(ISmartObject)
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 Tpmc9(0x06, this); 
secondSgPanel.LoadSmartObjects(sgPanel);

Version Information

.NET

Supported in: 6.0

.NET Compact Framework

Supported in: 3.5
See Also