示例#1
0
文件: Form1.cs 项目: nanariya/GPS
        public Form1()
        {
            InitializeComponent();

            _gps = new Nanariya.Gps();
            _gps.GpsDataReceive += new Nanariya.Gps.GpsEventHandler(gps_GpsDataReceive);

            String[] ports = _gps.GetPortList();

            foreach (String port in ports)
            {
                comboBox1.Items.Add(port);
            }
        }
示例#2
0
        public Form1()
        {
            InitializeComponent();

            _gps = new Nanariya.Gps();
            _gps.GpsDataReceive += new Nanariya.Gps.GpsEventHandler(gps_GpsDataReceive);

            String[] ports = _gps.GetPortList();

            foreach (String port in ports)
            {
                comboBox1.Items.Add(port);
            }
        }