コード例 #1
0
ファイル: PropertyAccess.cs プロジェクト: suifengsigan/TEST_1
        internal static int NxGetBits(UIBlock block, string propertyName)
        {
            PropertyList properties = block.GetProperties();
            int          num2       = SnapPointsStateSet.Chop17(properties.GetBits(propertyName));

            properties.Dispose();
            return(num2);
        }
コード例 #2
0
ファイル: PropertyAccess.cs プロジェクト: suifengsigan/TEST_1
        internal static void NxSetBits(UIBlock block, string propertyName, int value)
        {
            PropertyList properties = block.GetProperties();
            int          num2       = SnapPointsStateSet.Chop17(properties.GetBits(propertyName));
            int          bitsSc     = SnapPointsStateSet.Chop17(value);

            if (bitsSc != num2)
            {
                properties.SetBits(propertyName, bitsSc);
            }
            properties.Dispose();
        }