NexStar/SharedResources.cs
/// <summary>
/// This is called in the driver Connect(true) property,
/// it add the device id to the list of devices if it's not there and increments the device count.
/// </summary>
/// <param name="deviceId"></param>
This is called in the driver Connect(true) property,
it add the device id to the list of devices if it's not there and increments the device count.
This is called in the driver Connect ( true ) property it add the device id to the list of devices if it ' s not there and increments the device count .
public static void Connect(string deviceId)
        {
            lock (lockObject)
            {
                if (!connectedDevices.ContainsKey(deviceId))
                    connectedDevices.Add(deviceId, new DeviceHardware());
                connectedDevices[deviceId].count++;       
            }
        }
public static void Connect ( string deviceId ) { lock ( lockObject ) { if ( ! connectedDevices . ContainsKey ( deviceId ) ) connectedDevices . Add ( deviceId , new DeviceHardware ( ) ) ; connectedDevices [ deviceId ] . count ++ ; } }
This is called in the driver Connect(true) property,
it add the device id to the list of devices if it's not there and increments the device count.
This is called in the driver Connect ( true ) property it add the device id to the list of devices if it ' s not there and increments the device count .
// increment the value
deviceId
string
None