示例#1
0
 private void config_0A()
 {
     logger.Add("********* Sent Config *************");
     _encoder.SetPI(PI);
     _encoder.SetAF(AF);
     _encoder.SetPS(Radio);
     _encoder.SetTraffic(false, true); // TA,TP
     _encoder.SetPTY(PTY.Varied);
     _encoder.Set3A("353044C0CD46");
     //_encoder.SetRadioText(tbRT.Text);
 }
示例#2
0
        private void btnSetPI_Click(object sender, EventArgs e)
        {
            if (tbPI.Text.Length != 4)
            {
                MessageBox.Show("Invalid input", "PI must be an hexadecimal number of exactly four characters.", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                return;
            }

            // TODO : Convert
            _encoder.SetPI(0x0000);
        }