Try this code:<br />
<code>
<pre>
IList availableList = null;
availableList = EngineServiceProvider.GetInstance().GetAvailableInstances();
if (availableList != null)
{
ConfigurationInstance configInstance = OperatorConfigSettings.GetInstance().GetConfiguredInstance();
ArrayList configList = configInstance.ConfiguredEngines;
foreach (EngineInstanceStatus instance in availableList)
{
if (configList != null)
{
if(configList.Contains(instance.InstanceId))
toListBox.Items.Add(instance.ToString());
else
fromListBox.Items.Add(instance);
}
else
{
fromListBox.Items.Add(instance);
}
}
</pre>
</co
de