public MainWindow()
        {
            InitializeComponent();
            c16 = new CRC16();
            c162 = new CRC16CCITT( CRC16CCITT.InitialCrcValue.Zeros);

            tCRC16Poly.Text = "0x" + c16.poly.ToString("X");
            tCRC162Poly.Text = "0x"+c162.poly.ToString("X");
            tCRC162IV.Text = "0x"+c162.initialValue.ToString("X");
        }
示例#2
0
        public MainWindow()
        {
            InitializeComponent();
            c16  = new CRC16();
            c162 = new CRC16CCITT(CRC16CCITT.InitialCrcValue.Zeros);

            tCRC16Poly.Text  = "0x" + c16.poly.ToString("X");
            tCRC162Poly.Text = "0x" + c162.poly.ToString("X");
            tCRC162IV.Text   = "0x" + c162.initialValue.ToString("X");
        }