示例#1
0
    /// <summary>
    /// Returns a list of qrCodes.
    /// </summary>
    /// <returns></returns>
    private List<QrCode> GetQrCodeList()
    {
        List<QrCode> QrCodeList = new List<QrCode>();

        List<Table> tableList = this.GetTableList();

        foreach (Table t in tableList)
        {
            QrCode qr = new QrCode();

            qr.CompanyName = this.CompanyName;
            qr.TableName = t.TableName;
            qr.QrString = t.QrCode;
            qr.GenerateQrImage();

            QrCodeList.Add(qr);
        }

        return QrCodeList;
    }