Ejemplo n.º 1
0
 /// <summary>
 /// Add a set of device settings to the collection.
 /// </summary>
 public void AddDeviceSettings(DeviceSettings deviceSettings)
 {
     DeviceSettingsList.Add(deviceSettings);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Returns true if a device settings class has been created for the specified type.
 /// </summary>
 public bool AreDeviceSetingsDefined <T>() where T : DeviceSettings
 {
     return(DeviceSettings.OfType <T>().Any());
 }