예제 #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);
        }