91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 212KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2021-05-17
  • 語言: 其他
  • 標簽: gps??

資源簡介

gps授時校時系統,需要gps模塊支持。

資源截圖

代碼片段和文件信息

using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Windows.Forms;
using?System.IO.Ports;
using?System.Runtime.InteropServices;
using?System.Threading;

namespace?gps授時
{
????public?partial?class?時鐘芯片授時校驗系統?:?Form
????{
????????static?SerialPort?sp?=?new?SerialPort();
????????static?SerialPort?sp1?=?new?SerialPort();
????????string?indata?=?“2001-01-01??00:00:00“;
????????string?indata1?=?“無GPS信號,請檢查!“;
????????string?indata2?=?“2001-01-01??00:00:00.000“;
????????string?indata3?=?“2001-01-01??00:00:00.000“;
????????string?indata4?=?“2001-01-01??00:00:00“;
????????TimeSpan?wucha;
????????TimeSpan?shicha;
????????bool?z?=?false;
????????bool?s?=?false;
????????//調用Kernel32.DLL
????????[DllImport(“Kernel32.dll“)]
????????public?static?extern?void?GetLocalTime(SystemTime?st);
????????[DllImport(“Kernel32.dll“)]
????????public?static?extern?void?SetLocalTime(SystemTime?st);
????????[StructLayout(LayoutKind.Sequential)]
????????public?class?SystemTime
????????{
????????????public?ushort?wYear;
????????????public?ushort?wMonth;
????????????public?ushort?wDayOfWeek;
????????????public?ushort?wDay;
????????????public?ushort?Whour;
????????????public?ushort?wMinute;
????????????public?ushort?wSecond;
????????????public?ushort?wMilliseconds;
????????}????????
????????public?時鐘芯片授時校驗系統()
????????{
????????????InitializeComponent();
????????????this.FormClosing?+=?new?FormClosingEventHandler(Form1_FormClosing);
????????????comboBox1.Enabled?=?false;
????????????comboBox2.Enabled?=?false;
????????????dateTimePicker1.Enabled?=?false;
????????????button2.Enabled?=?false;
????????????button3.Enabled?=?false;
????????????button4.Enabled?=?false;
????????????button5.Enabled?=?false;
????????????button7.Enabled?=?false;
????????????button8.Enabled?=?false;
????????}
????????private?void?button1_Click(object?sender?EventArgs?e)
????????{
????????????string[]?ports?=?SerialPort.GetPortNames();
????????????comboBox1.Items.Clear();
????????????comboBox2.Items.Clear();
????????????foreach?(string?port?in?ports)
????????????{
????????????????comboBox1.Items.Add(port);
????????????????comboBox2.Items.Add(port);
????????????}
????????????comboBox1.Enabled?=?true;
????????????comboBox2.Enabled?=?true;
????????????dateTimePicker1.Enabled?=?false;
????????????button2.Enabled?=?false;
????????????button3.Enabled?=?false;
????????????button4.Enabled?=?false;
????????????button5.Enabled?=?false;
????????}
????????private?void?comboBox1_SelectedIndexChanged(object?sender?EventArgs?e)
????????{
????????????//?Allow?the?user?to?set?the?appropriate?properties.
????????????sp.Close();
????????????sp.PortName?=?comboBox1.Text;
????????????sp.BaudRate?=?115200;
????????????sp.Parity?=?Parity.None;
????????????sp.DataBits?=?8;
????????????sp.StopBits?=?StopBits.One;
????????????sp.Handsh

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件?????225280??2012-11-01?23:15??gps授時\gps授時\bin\Debug\gps授時.exe

?????文件??????32256??2012-11-01?23:15??gps授時\gps授時\bin\Debug\gps授時.pdb

?????文件??????11600??2012-11-01?23:14??gps授時\gps授時\bin\Debug\gps授時.vshost.exe

?????文件???????2423??2012-11-01?20:45??gps授時\gps授時\bin\Debug\gps授時.vshost.exe.manifest

?????文件??????????1??2012-10-31?20:58??gps授時\gps授時\ClassDiagram1.cd

?????文件??????99678??2012-11-01?20:42??gps授時\gps授時\Clock.ico

?????文件??????14114??2012-11-01?23:10??gps授時\gps授時\Form1.cs

?????文件??????30123??2012-11-01?23:06??gps授時\gps授時\Form1.Designer.cs

?????文件?????156426??2012-11-01?22:35??gps授時\gps授時\Form1.resx

?????文件???????5930??2012-11-01?20:45??gps授時\gps授時\gps授時.csproj

?????文件????????523??2012-10-31?21:06??gps授時\gps授時\gps授時.csproj.user

?????文件???????5420??2012-11-01?12:03??gps授時\gps授時\obj\x86\Debug\DesignTimeResolveAssemblyReferences.cache

?????文件???????6494??2012-11-01?23:17??gps授時\gps授時\obj\x86\Debug\DesignTimeResolveAssemblyReferencesInput.cache

?????文件????????565??2012-11-01?23:17??gps授時\gps授時\obj\x86\Debug\gps授時.csproj.FileListAbsolute.txt

?????文件????????975??2012-11-01?23:15??gps授時\gps授時\obj\x86\Debug\gps授時.csproj.GenerateResource.Cache

?????文件?????225280??2012-11-01?23:15??gps授時\gps授時\obj\x86\Debug\gps授時.exe

?????文件??????32256??2012-11-01?23:15??gps授時\gps授時\obj\x86\Debug\gps授時.pdb

?????文件????????180??2012-11-01?23:15??gps授時\gps授時\obj\x86\Debug\gps授時.Properties.Resources.resources

?????文件?????100244??2012-11-01?23:15??gps授時\gps授時\obj\x86\Debug\gps授時.時鐘芯片授時校驗系統.resources

?????文件????????515??2012-10-31?22:04??gps授時\gps授時\Program.cs

?????文件???????2423??2012-11-01?20:45??gps授時\gps授時\Properties\app.manifest

?????文件???????1350??2012-10-31?20:53??gps授時\gps授時\Properties\AssemblyInfo.cs

?????文件???????2870??2012-10-31?20:53??gps授時\gps授時\Properties\Resources.Designer.cs

?????文件???????5612??2012-10-31?20:53??gps授時\gps授時\Properties\Resources.resx

?????文件???????1096??2012-10-31?20:53??gps授時\gps授時\Properties\Settings.Designer.cs

?????文件????????249??2012-10-31?20:53??gps授時\gps授時\Properties\Settings.settings

?????文件????????869??2012-10-31?20:53??gps授時\gps授時.sln

????..A..H.?????24064??2012-11-01?23:18??gps授時\gps授時.suo

????..A..H.?????44032??2012-11-01?17:10??gps授時\gps授時.v11.suo

?????目錄??????????0??2012-10-31?20:53??gps授時\gps授時\obj\x86\Debug\TempPE

............此處省略11個文件信息

評論

共有 條評論