• 大小: 235KB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-05-09
  • 语言: C#
  • 标签: c#  代码  

资源简介

很好很强大的c#gps开发软件,很值得一看,可以实现定位功能

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Text;

namespace GPS定位
{
    public class DegreesMinutesSeconds
    {
        bool isPositive;
        public bool IsPositive
        {
            get { return isPositive; }
        }

        uint degrees;
        public uint Degrees
        {
            get { return degrees; }
        }

        uint minutes;
        public uint Minutes
        {
            get { return minutes; }
        }

        double seconds;
        public double Seconds
        {
            get { return seconds; }
        }



        public DegreesMinutesSeconds(double decimalDegrees)
        {
            isPositive = (decimalDegrees > 0);

            degrees = (uint)Math.Abs(decimalDegrees);

            double doubleMinutes = (Math.Abs(decimalDegrees) - Math.Abs((double)degrees)) * 60.0;
            minutes = (uint)doubleMinutes;

            seconds = (doubleMinutes - (double)minutes) * 60.0;
        }

        public DegreesMinutesSeconds(bool isPositive uint degrees uint minutes double seconds)
        {
            this.isPositive = isPositive;
            this.degrees = degrees;
            this.minutes = minutes;
            this.seconds = seconds;
        }

        public double ToDecimalDegrees()
        {
            double val = (double)degrees + ((double)minutes / 60.0) + ((double)seconds / 3600.0);
            val = isPositive ? val : val * -1;
            return val;
        }

        public override string ToString()
        {
            return degrees + “d “ + minutes + “‘ “ + seconds + “\““;
        }
    }
}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件        937  2009-07-16 17:10  GPS定位-地图\GPS定位-地图.sln

    ..A..H.     37376  2009-07-22 16:04  GPS定位-地图\GPS定位-地图.suo

     文件       1677  2009-07-16 15:32  GPS定位-地图\GPS定位\DegreesMinutesSeconds.cs

     文件        511  2009-07-16 15:31  GPS定位-地图\GPS定位\DeviceStateChangedEventArgs.cs

     文件       8546  2009-07-16 15:40  GPS定位-地图\GPS定位\GPS.cs

     文件       1613  2009-07-16 15:31  GPS定位-地图\GPS定位\GpsDeviceState.cs

     文件      11652  2009-07-16 15:31  GPS定位-地图\GPS定位\GpsPosition.cs

     文件       3207  2009-07-16 17:02  GPS定位-地图\GPS定位\GPS定位.csproj

     文件        478  2009-07-16 15:31  GPS定位-地图\GPS定位\LocationchangedEventArgs.cs

     文件       1168  2009-07-16 15:34  GPS定位-地图\GPS定位\Utils.cs

     文件     434176  2005-02-04 13:42  GPS定位-地图\GPS定位\bin\CoreDll.dll

     文件        145  2009-07-16 17:06  GPS定位-地图\GPS定位\obj\GPS定位.csproj.FileList.txt

     文件        784  2009-07-16 15:56  GPS定位-地图\GPS定位\obj\Debug\GPS定位.csproj.GenerateResource.Cache

     文件        180  2009-07-16 15:56  GPS定位-地图\GPS定位\obj\Debug\GPS定位.Properties.Resources.resources

     文件       4608  2009-07-16 16:29  GPS定位-地图\GPS定位\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll

     文件       1166  2009-07-16 14:33  GPS定位-地图\GPS定位\Properties\AssemblyInfo.cs

     文件       2840  2009-07-16 16:29  GPS定位-地图\GPS定位\Properties\Resources.Designer.cs

     文件       5612  2009-07-16 14:33  GPS定位-地图\GPS定位\Properties\Resources.resx

     文件       1105  2009-07-16 16:29  GPS定位-地图\GPS定位\Properties\Settings.Designer.cs

     文件        249  2009-07-16 14:33  GPS定位-地图\GPS定位\Properties\Settings.settings

     文件       1677  2009-07-16 16:58  GPS定位-地图\GPS定位-地图\DegreesMinutesSeconds.cs

     文件        511  2009-07-16 16:58  GPS定位-地图\GPS定位-地图\DeviceStateChangedEventArgs.cs

     文件        688  2009-07-17 11:51  GPS定位-地图\GPS定位-地图\Form1.cs

     文件       4024  2009-07-17 11:51  GPS定位-地图\GPS定位-地图\Form1.Designer.cs

     文件       5814  2009-07-17 11:51  GPS定位-地图\GPS定位-地图\Form1.resx

     文件       7986  2009-07-17 20:45  GPS定位-地图\GPS定位-地图\Form2.cs

     文件       8565  2009-07-17 20:45  GPS定位-地图\GPS定位-地图\Form2.Designer.cs

     文件       5814  2009-07-17 20:45  GPS定位-地图\GPS定位-地图\Form2.resx

     文件       4425  2009-07-18 08:39  GPS定位-地图\GPS定位-地图\Form3.cs

     文件       3269  2009-07-16 17:44  GPS定位-地图\GPS定位-地图\Form3.Designer.cs

............此处省略50个文件信息

评论

共有 条评论