Exemplo n.º 1
0
        private void AddAIToTable(GS1ApplicationIdentifierValue value)
        {
            int index = aiListDataGridView.Rows.Count;

            aiListDataGridView.Rows.Add();
            aiListDataGridView.Rows[index].Cells[0].Value = value.ApplicationIdentifier.ApplicationIdentifier;
            aiListDataGridView.Rows[index].Cells[1].Value = value.ApplicationIdentifier.DataTitle;
            aiListDataGridView.Rows[index].Cells[2].Value = value.Value;
        }
Exemplo n.º 2
0
        private void AddAI(string number, string value)
        {
#if !REMOVE_BARCODE_SDK
            GS1ApplicationIdentifierValue ai = null;
            try
            {
                ai = new GS1ApplicationIdentifierValue(GS1ApplicationIdentifiers.FindApplicationIdentifier(number), value);
            }
            catch (Exception e)
            {
                MessageBox.Show(e.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
                return;
            }
            _identifierValuesList.Add(ai);
            ShowPrintableValue();
            AddAIToTable(ai);
#endif
        }