public void Read(RegistryKey key, string name, object control, PropertyInfo property) { int v = RegistryBinding.ReadInt(key, name); switch (v) { case -1: property.SetValue(control, null); break; case 0: property.SetValue(control, false); break; default: property.SetValue(control, true); break; } }
public void Read(RegistryKey key, string name, object control, PropertyInfo property) { int v = RegistryBinding.ReadInt(key, name); property.SetValue(control, v); }