Exemplo n.º 1
0
        async void OnItemSelected(object sender, SelectedItemChangedEventArgs args)
        {
            var item = args.SelectedItem as Item;

            if (item == null)
            {
                return;
            }

            string qrCodeString =
                (int)CommonDef.QrCodeType.Payment + "," +
                targetPubId.ToString() + "," +
                item.Id.ToString() + "," +
                item.Price.ToString();

            Object[] itemInfo = new object[3];
            itemInfo[0] = "商品名:" + item.ItemName;
            itemInfo[1] = "詳細:" + item.Detail;
            itemInfo[2] = "必要ポイント:" + item.Price;

            QrCodePrintPage page = new QrCodePrintPage(
                qrCodeString,
                "商品のお支払い",
                "内容をお確かめの上、QRコードをお読込み下さい。",
                "商品情報",
                itemInfo
                );

            await Navigation.PushAsync(page);

            // Manually deselect item
            ItemsListView.SelectedItem = null;
        }
Exemplo n.º 2
0
        private QrCodePrintPage CreateQrCodePrintPage(EventView ev)
        {
            string qrCodeString =
                (int)CommonDef.QrCodeType.ApplyEvent + "," +
                ev.Id.ToString() + "," +
                pub.Id.ToString();

            Object[] itemInfo = new object[3];
            itemInfo[0] = "イベント名:" + ev.Name;
            itemInfo[1] = "参加店舗名:" + pub.Name;

            QrCodePrintPage page = new QrCodePrintPage(
                qrCodeString,
                "イベント参加",
                "内容をお確かめの上、QRコードをお読込み下さい。",
                "参加情報",
                itemInfo
                );

            return(page);
        }