示例#1
0
 public void OnClickPinDetail(MapPinDataEventArgs e)
 {
     if (ClickPinDetail != null)
     {
         ClickPinDetail(this, e);
     }
 }
        async public void MapLocation_ClickPinDetail(object sender, MapPinDataEventArgs e)
        {
            MapPinData pinData = e.PinData;
            DiscountData discountData = AppData.Discount.DiscountCollection.Find(item => { return item.DocumentId == pinData.PartnerId; });

            if (discountData != null)
            {
                try
                {
                    IsLoadActivity = true;
                    await AppData.Discount.LoadFullDescription(discountData);
                }
                finally
                {
                    IsLoadActivity = false;
                }

                await ViewPage.Navigation.PushAsync(new DiscountDetailPage(discountData.DocumentId), true);
            }
        }
示例#3
0
 public void OnClickPinDetail(MapPinDataEventArgs e)
 {
     if (ClickPinDetail != null) ClickPinDetail(this, e);
 }