Exemplo n.º 1
0
        void HandleMagcardRead(LineaDelegate Dispatcher, MagcardReadEventArgs Arguments)
        {
            Console.WriteLine(string.Format("Magcard swiped: {0}", Arguments.Data));

            PlayLineaSound(LineaDevice, 100, BarcodeTone);

            string CardNumber = ParseMagcardData(Arguments.Data);

            if (CardNumber == null)
            {
                ScanTypeLabel.Text = "Magcard (Error)";
                ScanDataLabel.Text = "Could not parse!";
            }
            else
            {
                ScanTypeLabel.Text = "Magcard";
                ScanDataLabel.Text = CardNumber;
            }
        }
Exemplo n.º 2
0
        void HandleMagcardRead(LineaDelegate Dispatcher, MagcardReadEventArgs Arguments)
        {
            Console.WriteLine (string.Format("Magcard swiped: {0}",Arguments.Data));

            PlayLineaSound(LineaDevice, 100, BarcodeTone);

            string CardNumber = ParseMagcardData (Arguments.Data);
            if ( CardNumber == null )
            {
                ScanTypeLabel.Text = "Magcard (Error)";
                ScanDataLabel.Text = "Could not parse!";
            }
            else
            {
                ScanTypeLabel.Text = "Magcard";
                ScanDataLabel.Text = CardNumber;
            }
        }