Esempio n. 1
0
        private void UpdateCIDComandOutput(object sender, EventArgs e)
        {
            this.cidCommandOutputTextbox.Text = "";
            string cid = this.cidOutputTextBox.Text;

            Application.DoEvents();
            if (!Utils.isIDValid(cid))
            {
                return;
            }

            Utils.generateCommand(this.cidCommandOutputTextbox, this.cidCommandType.Text, cid);
        }
Esempio n. 2
0
        private void updateCidDashOutput(string cid)
        {
            if (!Utils.isIDValid(cid))
            {
                return;
            }

            string dashText = "";

            int digitNum = cid.Length / 8;

            for (int i = 0; i < 8; i++)
            {
                string pice = cid.Substring(i * digitNum, digitNum);
                dashText += pice;
                if (i < 7)
                {
                    dashText += "-";
                }
            }

            this.cidDashOutputTextBox.Text = dashText;
        }