首 页 | 新 闻 | Symbian | Android| Windows Mobile | J2ME | 下载中心 | 游戏策划招聘与求职 | 购书指南 | 视频教程
您现在的位置: 开发视界 >> Windows Mobile >> Windows Mobile联网 >> 正文
基于Windows Mobile 5.0的GPS应用程序开发
作者:wang8712    文章来源:csdn blog    更新时间:2007-9-25 10:55:14
            }

            open_gps.Enabled = false;

            close_gps.Enabled = true;

        }

     

        //菜单:关闭GPS设备

        private void close_gps_Click(object sender, EventArgs e)

        {

            if (gps.Opened)

            {

                gps.Close();

            }

            open_gps.Enabled  = true;

            close_gps.Enabled = false;

        }

 

 

        //菜单:退出

        private void exit_Click(object sender, EventArgs e)

        {

            if (gps.Opened)

                gps.Close();

            Close();

        }

       

   

        //获取经纬度坐标值

        private void getdata_Click(object sender, EventArgs e)

        {

            string str;

            if (!gps.Opened)

            {

                str = "GPS设备没有打开,请点击打开GPS菜单后重试!";

                MessageBox.Show(str);

                return;

            }

            if (device == null)

            {

                str = "GPS设备打开错误,请重新插拔GPS卡后重试!";

                MessageBox.Show(str);

                return;

            }

            if (position != null)

            {

                string strJd;       //经度

string strWd;  //纬度

                strJd = position.DoubleLongtitude.ToString();

                strWd = position.DoubleLatitude.ToString();

                DialogResult result;

上一页  [1] [2] [3] [4] [5] [6] 下一页

相关文章:
没有相关文章
 

站点地图 | 加入收藏 | 联系站长 | 广告服务 |
QQ:280529124  Tel:0592-8271361 辽ICP备05021703号