截取字符串
word = word.Substring(word.Length - 7, 4);
轉成二進制
word = "0000"+ Convert.ToString(Int32.Parse(word, System.Globalization.NumberStyles.HexNumber), 2);
16進制轉10進制(int)
Int32.Parse( word , System.Globalization.NumberStyles.HexNumber )
10進制轉2進制
Convert.ToString(str,2)
