public VCPCode this[eVCPCode code] { get { return(this.Get(code)); } set { this.Add(value); } }
public VCPCode(eVCPCode code, String name = "", String description = "", params byte[] presets) : this() { this.Code = code; foreach (byte preset in presets) { Presets.Add(preset); } this.Name = name; this.Description = description; }
/// <summary> /// Returns the VCP name as stated in the VESA MCCS Standard Version 2.2a /// </summary> /// <param name="code"></param> /// <returns></returns> public static String GetVCPName(eVCPCode code) { return(VCPCodeStandard.VCPNameLUT[(byte)code]); }
public bool Contains(eVCPCode code) { return(0 == (from v in this where v.Code == code select v).Count()); }
public VCPCode Get(eVCPCode code) { return((from v in this where v.Code == code select v).SingleOrDefault()); }
public bool Remove(eVCPCode code) { return(this.Remove(this.Get(code))); }