Пример #1
0
        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;
            }
        }
Пример #2
0
        public void Read(RegistryKey key, string name, object control, PropertyInfo property)
        {
            int v = RegistryBinding.ReadInt(key, name);

            property.SetValue(control, v);
        }