标签:src com smobiler otl amp int 学习 event tar
我们要实现上图中的效果,需要如下的操作:
VB:
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Me.Gps1.GetGpsAsyn(Sub(s As Object, args As GPSData)
Me.ShowMap(args.Latitude, args.Longitude, "当前位置")
End Sub)
End Sub
C#:
private void Button1_Click(object sender, EventArgs e)
{
this.gps1.GetGpsAsyn();
}
private void gps1_GotLocation(object sender, GPSData e)
{
this.ShowMap(e.Latitude, e.Longitude, "当前位置");
}
注:用GPS控件获取当前的经度、纬度
.Net语言 APP开发平台——Smobiler学习日志:在手机应用开发中如何实现跳转地图
标签:src com smobiler otl amp int 学习 event tar
原文地址:http://www.cnblogs.com/amanda112/p/6839520.html