Compare commits

...

1 Commits

36 changed files with 9459 additions and 0 deletions

View File

@ -0,0 +1,11 @@
{
"Version": 1,
"ProjectMap": {
"dd007737-a4e4-4ccf-8237-7e7d42d1282b": {
"ProjectGuid": "dd007737-a4e4-4ccf-8237-7e7d42d1282b",
"DisplayName": "水下化学生物实验室项目显示软件",
"ColorIndex": 0
}
},
"NextColorIndex": 1
}

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
</configuration>

View File

@ -0,0 +1,721 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
using .Model;
namespace
{
public partial class Form1 : Form
{
Socket server;
SensorModel sensorModel = new SensorModel();
string ip;
int port;
Thread t;
public Form1()
{
//样式
InitializeComponent();
textBox1.Text = "192.168.1.99";
textBox2.Text = "10000";
}
public void Start()
{
//1.创建服务器端电话
server = new Socket(AddressFamily.InterNetwork, SocketType.Dgram, ProtocolType.Udp);
//2.创建手机卡
IPAddress iP = IPAddress.Parse(ip);//ip
IPEndPoint endPoint = new IPEndPoint(iP, port);//端口号
//3.将电话卡插进电话中(绑定端口号和IP)
server.Bind(endPoint);
//listBox1.Items.Add("服务器已经成功开启!");
//开启接收消息线程
t = new Thread(ReciveMsg);
t.IsBackground = true;
t.Start();
}
/// <summary>
/// 接收发送给本机ip对应端口号的数据
/// </summary>
void ReciveMsg()
{
while (true)
{
EndPoint point = new IPEndPoint(IPAddress.Any, 0);//用来保存发送方的ip和端口号
byte[] buffer = new byte[1024 * 1024];
int length = server.ReceiveFrom(buffer, ref point);//接收数据报
string message = "";
//数据存入本地text
for (int i = 0; i < length; i++)
{
message += buffer[i].ToString("X2");
}
AddLgoToTXT("数据记录.txt", @"D:\", message);
//消息长度校验
//if (Convert.ToInt32(buffer[3].ToString("X2") + buffer[4].ToString("X2"), 16) != length)
// return;
sensorModel.datetime = DateTime.Parse((buffer[9] + 2000).ToString() + "-" + (int)buffer[10] + "-" + (int)buffer[11] + " " + (int)buffer[12] + ":" + (int)buffer[13] + ":" + (int)buffer[14]);
sensorModel.fInCurrent = bytetofloat(buffer, 15);
sensorModel.fOutCurrent_24V = bytetofloat(buffer, 19);
sensorModel.fOutCurrent_12V = bytetofloat(buffer, 23);
sensorModel.fTemperature = bytetofloat(buffer, 27);
sensorModel.fHumidity = bytetofloat(buffer, 31);
sensorModel.ucWaterLeak_1 = buffer[35] == 0x01;
sensorModel.ucWaterLeak_2 = buffer[36] == 0x01;
sensorModel.fCZT_CountingRate = BitConverter.ToInt32(buffer, 37);
sensorModel.fSSJT_CountingRate = BitConverter.ToInt32(buffer, 41);
sensorModel.fFluorescenceConcentration = bytetofloat(buffer, 45);
sensorModel.fCDOM_FluorescenceConcentration = bytetofloat(buffer, 49);
sensorModel.fChlorophyll_FluorescenceConcentration = bytetofloat(buffer, 53);
sensorModel.fMEMS_Temperature = bytetofloat(buffer, 57);
sensorModel.fMEMS_Humidity = bytetofloat(buffer, 61);
sensorModel.fMEMS_Pressure = bytetofloat(buffer, 65);
sensorModel.fMEMS_Chromatography_1 = bytetofloat(buffer, 69);
sensorModel.fMEMS_Chromatography_2 = bytetofloat(buffer, 73);
sensorModel.fMEMS_Chromatography_3 = bytetofloat(buffer, 77);
sensorModel.fMEMS_Chromatography_4 = bytetofloat(buffer, 81);
sensorModel.fGC_Temperature = bytetofloat(buffer, 85);
sensorModel.fGC_Humidity = bytetofloat(buffer, 89);
sensorModel.fGC_Pressure = bytetofloat(buffer, 93);
sensorModel.fGC_Chromatography = bytetofloat(buffer, 97);
sensorModel.fDGSA_Temperature = bytetofloat(buffer, 101);
sensorModel.fDGSA_Humidity = bytetofloat(buffer, 105);
sensorModel.fDGSA_Level_1 = bytetofloat(buffer, 109);
sensorModel.fDGSA_Level_2 = bytetofloat(buffer, 113);
sensorModel.fDGSA_Level_3 = bytetofloat(buffer, 117);
sensorModel.fDGSA_Level_4 = bytetofloat(buffer, 121);
sensorModel.fMS_Temperature = bytetofloat(buffer, 125);
sensorModel.fMS_Humidity = bytetofloat(buffer, 129);
sensorModel.fMS_Pressure = bytetofloat(buffer, 133);
sensorModel.fMS_MSData_1 = bytetofloat(buffer, 137);
sensorModel.fMS_MSData_2 = bytetofloat(buffer, 141);
sensorModel.fMS_MSData_3 = bytetofloat(buffer, 145);
sensorModel.fMS_MSData_4 = bytetofloat(buffer, 149);
sensorModel.fMS_MSData_5 = bytetofloat(buffer, 153);
sensorModel.fMS_M = bytetofloat(buffer, 157);
if (sensorModel.fTemperature < 55 && sensorModel.fTemperature > 0)//正常情况
{
label_shape_tem1.ForeColor = Color.FromArgb(0, 171, 78);
}
if (sensorModel.fTemperature == 0)//未正常工作或未启动系统
{
label_shape_tem1.ForeColor = Color.FromArgb(127, 127, 127);
}
if (sensorModel.fTemperature < 0 || sensorModel.fTemperature > 55 || sensorModel.fTemperature == 55)//超阈值报警红色
{
label_shape_tem1.ForeColor = Color.FromArgb(186, 0, 0);
}
if (sensorModel.fHumidity < 70 && sensorModel.fHumidity > 0)//正常情况
{
label_shape_hum1.ForeColor = Color.FromArgb(0, 171, 78);
}
if (sensorModel.fHumidity == 0)//未正常工作或未启动系统
{
label_shape_hum1.ForeColor = Color.FromArgb(127, 127, 127);
}
if (sensorModel.fHumidity < 0 || sensorModel.fHumidity > 70 || sensorModel.fHumidity == 70)//超阈值报警红色
{
label_shape_hum1.ForeColor = Color.FromArgb(186, 0, 0);
}
if (sensorModel.fInCurrent > 0 && sensorModel.fInCurrent < 8)
{
label_shape_Cur_48_in.ForeColor = Color.FromArgb(0, 171, 78);
}
if (sensorModel.fInCurrent == 0)
{
label_shape_Cur_48_in.ForeColor = Color.FromArgb(127, 127, 127);
}
if (sensorModel.fInCurrent < 0 || sensorModel.fInCurrent > 8)
{
label_shape_Cur_48_in.ForeColor = Color.FromArgb(186, 0, 0);
}
if (sensorModel.fOutCurrent_24V > 0 && sensorModel.fOutCurrent_24V < 8)
{
label_shape_Cur_24_out.ForeColor = Color.FromArgb(0, 171, 78);
}
if (sensorModel.fOutCurrent_24V == 0)
{
label_shape_Cur_24_out.ForeColor = Color.FromArgb(127, 127, 127);
}
if (sensorModel.fOutCurrent_24V < 0 || sensorModel.fOutCurrent_24V > 8)
{
label_shape_Cur_24_out.ForeColor = Color.FromArgb(186, 0, 0);
}
if (sensorModel.fOutCurrent_12V > 0 && sensorModel.fOutCurrent_12V < 8)
{
label_shape_Cur_12_out.ForeColor = Color.FromArgb(0, 171, 78);
}
if (sensorModel.fOutCurrent_12V == 0)
{
label_shape_Cur_12_out.ForeColor = Color.FromArgb(127, 127, 127);
}
if (sensorModel.fOutCurrent_12V < 0 || sensorModel.fOutCurrent_12V > 8)
{
label_shape_Cur_12_out.ForeColor = Color.FromArgb(186, 0, 0);
}
//if (sensorModel.fFluorescenceConcentration > 0)
//{
// label_shape_wsw.ForeColor = Color.FromArgb(0, 171, 78);
//}
//else
//{
// label_shape_wsw.ForeColor = Color.FromArgb(186, 0, 0);
//}
//if (sensorModel.fCDOM_FluorescenceConcentration > 0)
//{
// label_shape_CDOM.ForeColor = Color.FromArgb(0, 171, 78);
//}
//else
//{
// label_shape_CDOM.ForeColor = Color.FromArgb(186, 0, 0);
//}
//if (sensorModel.fChlorophyll_FluorescenceConcentration > 0)
//{
// label_shape_yls.ForeColor = Color.FromArgb(0, 171, 78);
//}
//else
//{
// label_shape_yls.ForeColor = Color.FromArgb(186, 0, 0);
//}
//if (sensorModel.fMEMS_Temperature > 0)
//{
// label_shape_mems.ForeColor = Color.FromArgb(0, 171, 78);
//}
//else
//{
// label_shape_mems.ForeColor = Color.FromArgb(186, 0, 0);
//}
//if (sensorModel.fGC_Temperature > 0)
//{
// label_shape_qxsp.ForeColor = Color.FromArgb(0, 171, 78);
//}
//else
//{
// label_shape_qxsp.ForeColor = Color.FromArgb(186, 0, 0);
//}
//if (sensorModel.fDGSA_Temperature > 0)
//{
// label_shape_rjqgp.ForeColor = Color.FromArgb(0, 171, 78);
//}
//else
//{
// label_shape_rjqgp.ForeColor = Color.FromArgb(186, 0, 0);
//}
//if (sensorModel.fMS_Temperature > 0)
//{
// label_shape_zpy.ForeColor = Color.FromArgb(0, 171, 78);
//}
//else
//{
// label_shape_zpy.ForeColor = Color.FromArgb(186, 0, 0);
//}
//if (sensorModel.fCZT_CountingRate > 0)
//{
// label_shape_czt.ForeColor = Color.FromArgb(0, 171, 78);
//}
//else
//{
// label_shape_czt.ForeColor = Color.FromArgb(186, 0, 0);
//}
//if (sensorModel.fSSJT_CountingRate > 0)
//{
// label_shape_ssjt.ForeColor = Color.FromArgb(0, 171, 78);
//}
//else
//{
// label_shape_ssjt.ForeColor = Color.FromArgb(186, 0, 0);
//}
//数据填充
Invoke((EventHandler)(delegate
{
label2.Text = sensorModel.datetime.ToString("yyyy-MM-dd HH:mm:ss");
label7.Text = sensorModel.fInCurrent.ToString("0.00");
label10.Text = sensorModel.fOutCurrent_24V.ToString("0.00");
label12.Text = sensorModel.fOutCurrent_12V.ToString("0.00");
label14.Text = sensorModel.fTemperature.ToString("0.00") + "℃";
label16.Text = sensorModel.fHumidity.ToString("0.00") + "%";
label18.Text = sensorModel.fOutCurrent_12V.ToString();
label20.Text = sensorModel.fOutCurrent_12V.ToString();
if (label_shape_wsw.ForeColor == Color.FromArgb(127, 127, 127))
{
label21.Text ="0.00";
}
else
{
label21.Text = sensorModel.fFluorescenceConcentration.ToString("0.00");
}
if (label_shape_yls.ForeColor == Color.FromArgb(127, 127, 127))
{
label23.Text = "0.00";
}
else
{
label23.Text = sensorModel.fCDOM_FluorescenceConcentration.ToString("0.00");
}
if (label_shape_CDOM.ForeColor == Color.FromArgb(127, 127, 127))
{
label25.Text = "0.00";
}
else
{
label25.Text = sensorModel.fChlorophyll_FluorescenceConcentration.ToString("0.00");
}
if (label_shape_mems.ForeColor == Color.FromArgb(127, 127, 127))
{
label27.Text = "0.00";
label30.Text = "0.00";
label38.Text = "0.00";
label40.Text = "0.00";
label42.Text = "0.00";
label44.Text = "0.00";
label46.Text = "0.00";
}
else
{
label27.Text = sensorModel.fMEMS_Temperature.ToString("0.00") + "℃";
label30.Text = sensorModel.fMEMS_Humidity.ToString("0.00") + "%";
label38.Text = sensorModel.fMEMS_Pressure.ToString("0.00") + "Pa";
label40.Text = sensorModel.fMEMS_Chromatography_1.ToString("0.00");
label42.Text = sensorModel.fMEMS_Chromatography_2.ToString("0.00");
label44.Text = sensorModel.fMEMS_Chromatography_3.ToString("0.00");
label46.Text = sensorModel.fMEMS_Chromatography_4.ToString("0.00");
}
if (label_shape_qxsp.ForeColor == Color.FromArgb(127, 127, 127))
{
label48.Text = "0.00";
label47.Text = "0.00";
label32.Text = "0.00";
label31.Text = "0.00";
}
else
{
label48.Text = sensorModel.fGC_Temperature.ToString("0.00") + "℃";
label47.Text = sensorModel.fGC_Humidity.ToString("0.00") + "%";
label32.Text = sensorModel.fGC_Pressure.ToString("0.00") + "Pa";
label31.Text = sensorModel.fGC_Chromatography.ToString("0.00");
}
if (label_shape_rjqgp.ForeColor == Color.FromArgb(127, 127, 127))
{
label57.Text = "0.00";
label56.Text = "0.00";
label54.Text = "0.00";
label53.Text = "0.00";
label34.Text = "0.00";
label33.Text = "0.00";
}
else
{
label57.Text = sensorModel.fDGSA_Temperature.ToString("0.00") + "℃";
label56.Text = sensorModel.fDGSA_Humidity.ToString("0.00") + "%";
label54.Text = Math.Abs(sensorModel.fDGSA_Level_1).ToString("0.00");
//label53.Text = Math.Abs(sensorModel.fDGSA_Level_2).ToString("0.00");
//label34.Text = Math.Abs(sensorModel.fDGSA_Level_3).ToString("0.00");
//label33.Text = Math.Abs(sensorModel.fDGSA_Level_4).ToString("0.00");
label53.Text = sensorModel.fDGSA_Level_2.ToString("0.00") + "℃";
label34.Text = sensorModel.fDGSA_Level_3.ToString("0.00") + "%";
label33.Text = Math.Abs(sensorModel.fDGSA_Level_4).ToString("0.00");
}
if (label_shape_zpy.ForeColor == Color.FromArgb(127, 127, 127))
{
label67.Text = "0.00";
label65.Text = "0.00";
label66.Text = "0.00";
label62.Text = "0.00";
label55.Text = "0.00";
label36.Text = "0.00";
label35.Text = "0.00";
label76.Text = "0.00";
label75.Text = "0.00";
}
else
{
label67.Text = sensorModel.fMS_Temperature.ToString("0.00") + "℃";
label65.Text = sensorModel.fMS_Humidity.ToString("0.00") + "%";
label66.Text = sensorModel.fMS_Pressure.ToString("0.00") + "Pa";
label62.Text = sensorModel.fMS_MSData_1.ToString("0.00");
label55.Text = sensorModel.fMS_MSData_2.ToString("0.00");
label36.Text = sensorModel.fMS_MSData_3.ToString("0.00");
label35.Text = sensorModel.fMS_MSData_4.ToString("0.00");
label76.Text = sensorModel.fMS_MSData_5.ToString("0.00");
label75.Text = sensorModel.fMS_M.ToString("0.00");
}
if (label_shape_czt.ForeColor == Color.FromArgb(127, 127, 127))
{
label4.Text = "0";
}
else
{
label4.Text = sensorModel.fCZT_CountingRate.ToString();
}
if (label_shape_ssjt.ForeColor == Color.FromArgb(127, 127, 127))
{
label5.Text = "0";
}
else
{
label5.Text = sensorModel.fSSJT_CountingRate.ToString();
}
}));
}
}
/// <summary>
/// 将传入的byte数组 从指定位置倒置
/// </summary>
/// <param name="b"></param>
/// <returns></returns>
public static float bytetofloat(byte[] b, int start)
{
return BitConverter.ToSingle(new byte[] { b[start], b[start + 1], b[start + 2], b[start + 3] }, 0);
}
private void button1_Click(object sender, EventArgs e)
{
if (button1.Text == "打开")
{
if (textBox1.Text == "" || textBox2.Text == "")
{
MessageBox.Show("请检查IP和端口号!");
return;
}
ip = textBox1.Text.Trim();
port = int.Parse(textBox2.Text.Trim());
//UDP打开
Start();
button1.Text = "关闭";
MessageBox.Show("打开成功!");
}
else if (button1.Text == "关闭")
{
if (server != null)
{
t.Abort();
t = null;
server.Close();//关闭链接
server.Dispose();
server = null;
MessageBox.Show("关闭成功!");
}
button1.Text = "打开";
}
}
//文件写入
/// <summary>
/// txt文档自动保存
/// </summary>
/// <param name="logstring"></param>
public static void AddLgoToTXT(string _file_name, string path, string logstring)
{
Path_Create(path, _file_name);
if (!path.EndsWith(@"\"))
path += @"\";
using (StreamWriter writer = new StreamWriter(path + _file_name, true))
{
writer.WriteLine(logstring);
}
}
//检测并创建文件存储路径
public static bool Path_Create(string path, string filename)
{
try
{
if (!System.IO.Directory.Exists(path))
{
Directory.CreateDirectory(path);
}
if (string.IsNullOrEmpty(filename))
return true;
if (!path.EndsWith(@"\"))
path += @"\";
if (!System.IO.File.Exists(path + filename))
{
FileStream stream = System.IO.File.Create(path + filename);
stream.Close();
stream.Dispose();
}
return true;
}
catch (Exception)
{
return false;
}
}
private void Form1_FormClosing(object sender, FormClosingEventArgs e)
{
DialogResult result = MessageBox.Show("是否确认关闭软件?", "警告", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
if (result == DialogResult.No)
{
e.Cancel = true;
}
}
private void button2_Click(object sender, EventArgs e)
{
string str_period = textBox3.Text;
string[] str_period_data = str_period.Split(new char[] { ',' });
string res = "";
for (int i = 0; i < str_period_data.Length; i++)
{
res = str_period_data[i];
if (res == "")
{
MessageBox.Show("输入有误请重新输入!");
textBox3.Clear();
return;
}
if (res.Contains(""))
{
MessageBox.Show("逗号输入有误,请重新输入!");
textBox3.Clear();
return;
}
if (res.Contains(" "))
{
MessageBox.Show("包含空格,请重新输入!");
textBox3.Clear();
return;
}
}
if (str_period_data.Length != 48)
{
MessageBox.Show("输入时序不够48个请重新输入!");
//textBox3.Clear();
return;
}
else
{
DialogResult result = MessageBox.Show("是否设置为该时序:"+"\r\n"+"1#待机时间:"+str_period_data[0]+"min运行时间"+str_period_data[1]+
"min" + "\r\n" + "2#待机时间:" + str_period_data[2] + "min运行时间" + str_period_data[3] +
"min" + "\r\n" + "3#待机时间:" + str_period_data[4] + "min运行时间" + str_period_data[5] +
"min" + "\r\n" + "4#待机时间:" + str_period_data[6] + "min运行时间" + str_period_data[7] +
"min" + "\r\n" + "5#待机时间:" + str_period_data[8] + "min运行时间" + str_period_data[9] +
"min" + "\r\n" + "6#待机时间:" + str_period_data[10] + "min运行时间" + str_period_data[11] +
"min" + "\r\n" + "7#待机时间:" + str_period_data[12] + "min运行时间" + str_period_data[13] +
"min" + "\r\n" + "8#待机时间:" + str_period_data[14] + "min运行时间" + str_period_data[15] +
"min" + "\r\n" + "9#待机时间:" + str_period_data[16] + "min运行时间" + str_period_data[17] +
"min" + "\r\n" + "10#待机时间:" + str_period_data[18] + "min运行时间" + str_period_data[19] +
"min" + "\r\n" + "11#待机时间:" + str_period_data[20] + "min运行时间" + str_period_data[21] +
"min" + "\r\n" + "12#待机时间:" + str_period_data[22] + "min运行时间" + str_period_data[23] +
"min" + "\r\n" + "13#待机时间:" + str_period_data[24] + "min运行时间" + str_period_data[25] +
"min" + "\r\n" + "14#待机时间:" + str_period_data[26] + "min运行时间" + str_period_data[27] +
"min" + "\r\n" + "15#待机时间:" + str_period_data[28] + "min运行时间" + str_period_data[29] +
"min" + "\r\n" + "16#待机时间:" + str_period_data[30] + "min运行时间" + str_period_data[31] +
"min" + "\r\n" + "17#待机时间:" + str_period_data[32] + "min运行时间" + str_period_data[33] +
"min" + "\r\n" + "18#待机时间:" + str_period_data[34] + "min运行时间" + str_period_data[35] +
"min" + "\r\n" + "19#待机时间:" + str_period_data[36] + "min运行时间" + str_period_data[37] +
"min" + "\r\n" + "20#待机时间:" + str_period_data[38] + "min运行时间" + str_period_data[39] +
"min" + "\r\n" + "工控机待机时间:" + str_period_data[40] + "min运行时间" + str_period_data[41] +
"min" + "\r\n" + "交换机待机时间:" + str_period_data[42] + "min运行时间" + str_period_data[43] +
"min" + "\r\n" + "串口服务器1待机时间" + str_period_data[44] + "min运行时间" + str_period_data[45] +
"min" + "\r\n" + "串口服务器2待机时间" + str_period_data[46] + "min运行时间" + str_period_data[47] +
"min", "警告", MessageBoxButtons.YesNo, MessageBoxIcon.Warning);
if (result == DialogResult.No)
{
MessageBox.Show("存储失败");
}
if (result == DialogResult.Yes)
{
MessageBox.Show("导入失败");
}
}
}
private void label_shape_rjqgp_Click(object sender, EventArgs e)
{
if (label_shape_rjqgp.ForeColor == Color.FromArgb(0, 171, 78))
{
label_shape_rjqgp.ForeColor = Color.FromArgb(127, 127, 127);
return;
}
if (label_shape_rjqgp.ForeColor == Color.FromArgb(127, 127, 127))
{
label_shape_rjqgp.ForeColor = Color.FromArgb(0, 171, 78);
return;
}
// int i = 0;
}
private void label_shape_wsw_Click(object sender, EventArgs e)
{
if (label_shape_wsw.ForeColor == Color.FromArgb(0, 171, 78))
{
label_shape_wsw.ForeColor = Color.FromArgb(127, 127, 127);
return;
}
if (label_shape_wsw.ForeColor == Color.FromArgb(127, 127, 127))
{
label_shape_wsw.ForeColor = Color.FromArgb(0, 171, 78);
return;
}
}
private void label_shape_yls_Click(object sender, EventArgs e)
{
if (label_shape_yls.ForeColor == Color.FromArgb(0, 171, 78))
{
label_shape_yls.ForeColor = Color.FromArgb(127, 127, 127);
return;
}
if (label_shape_yls.ForeColor == Color.FromArgb(127, 127, 127))
{
label_shape_yls.ForeColor = Color.FromArgb(0, 171, 78);
return;
}
}
private void label_shape_CDOM_Click(object sender, EventArgs e)
{
if (label_shape_CDOM.ForeColor == Color.FromArgb(0, 171, 78))
{
label_shape_CDOM.ForeColor = Color.FromArgb(127, 127, 127);
return;
}
if (label_shape_CDOM.ForeColor == Color.FromArgb(127, 127, 127))
{
label_shape_CDOM.ForeColor = Color.FromArgb(0, 171, 78);
return;
}
}
private void label_shape_ssjt_Click(object sender, EventArgs e)
{
if (label_shape_ssjt.ForeColor == Color.FromArgb(0, 171, 78))
{
label_shape_ssjt.ForeColor = Color.FromArgb(127, 127, 127);
return;
}
if (label_shape_ssjt.ForeColor == Color.FromArgb(127, 127, 127))
{
label_shape_ssjt.ForeColor = Color.FromArgb(0, 171, 78);
return;
}
}
private void label_shape_czt_Click(object sender, EventArgs e)
{
if (label_shape_czt.ForeColor == Color.FromArgb(0, 171, 78))
{
label_shape_czt.ForeColor = Color.FromArgb(127, 127, 127);
return;
}
if (label_shape_czt.ForeColor == Color.FromArgb(127, 127, 127))
{
label_shape_czt.ForeColor = Color.FromArgb(0, 171, 78);
return;
}
}
private void label_shape_qxsp_Click(object sender, EventArgs e)
{
if (label_shape_qxsp.ForeColor == Color.FromArgb(0, 171, 78))
{
label_shape_qxsp.ForeColor = Color.FromArgb(127, 127, 127);
return;
}
if (label_shape_qxsp.ForeColor == Color.FromArgb(127, 127, 127))
{
label_shape_qxsp.ForeColor = Color.FromArgb(0, 171, 78);
return;
}
}
private void label_shape_zpy_Click(object sender, EventArgs e)
{
if (label_shape_zpy.ForeColor == Color.FromArgb(0, 171, 78))
{
label_shape_zpy.ForeColor = Color.FromArgb(127, 127, 127);
return;
}
if (label_shape_zpy.ForeColor == Color.FromArgb(127, 127, 127))
{
label_shape_zpy.ForeColor = Color.FromArgb(0, 171, 78);
return;
}
}
private void label_shape_mems_Click(object sender, EventArgs e)
{
if (label_shape_mems.ForeColor == Color.FromArgb(0, 171, 78))
{
label_shape_mems.ForeColor = Color.FromArgb(127, 127, 127);
return;
}
if (label_shape_mems.ForeColor == Color.FromArgb(127, 127, 127))
{
label_shape_mems.ForeColor = Color.FromArgb(0, 171, 78);
return;
}
}
private void label89_Click(object sender, EventArgs e)
{
}
}
}

View File

@ -0,0 +1,51 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace .Model
{
public class SensorModel
{
public DateTime datetime { get; set; }
public float fInCurrent { get; set; }
public float fOutCurrent_24V { get; set; }
public float fOutCurrent_12V { get; set; }
public float fTemperature { get; set; }
public float fHumidity { get; set; }
public bool ucWaterLeak_1 { get; set; }
public bool ucWaterLeak_2 { get; set; }
public int fCZT_CountingRate { get; set; }
public int fSSJT_CountingRate { get; set; }
public float fFluorescenceConcentration { get; set; }
public float fCDOM_FluorescenceConcentration { get; set; }
public float fChlorophyll_FluorescenceConcentration { get; set; }
public float fMEMS_Temperature { get; set; }
public float fMEMS_Humidity { get; set; }
public float fMEMS_Pressure { get; set; }
public float fMEMS_Chromatography_1 { get; set; }
public float fMEMS_Chromatography_2 { get; set; }
public float fMEMS_Chromatography_3 { get; set; }
public float fMEMS_Chromatography_4 { get; set; }
public float fGC_Temperature { get; set; }
public float fGC_Humidity { get; set; }
public float fGC_Pressure { get; set; }
public float fGC_Chromatography { get; set; }
public float fDGSA_Temperature { get; set; }
public float fDGSA_Humidity { get; set; }
public float fDGSA_Level_1 { get; set; }
public float fDGSA_Level_2 { get; set; }
public float fDGSA_Level_3 { get; set; }
public float fDGSA_Level_4 { get; set; }
public float fMS_Temperature { get; set; }
public float fMS_Humidity { get; set; }
public float fMS_Pressure { get; set; }
public float fMS_MSData_1 { get; set; }
public float fMS_MSData_2 { get; set; }
public float fMS_MSData_3 { get; set; }
public float fMS_MSData_4 { get; set; }
public float fMS_MSData_5 { get; set; }
public float fMS_M { get; set; }
}
}

View File

@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace
{
internal static class Program
{
/// <summary>
/// 应用程序的主入口点。
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}

View File

@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// 有关程序集的一般信息由以下
// 控制。更改这些特性值可修改
// 与程序集关联的信息。
[assembly: AssemblyTitle("水下化学生物实验室项目显示软件")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("水下化学生物实验室项目显示软件")]
[assembly: AssemblyCopyright("Copyright © 2022")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// 将 ComVisible 设置为 false 会使此程序集中的类型
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
//请将此类型的 ComVisible 特性设置为 true。
[assembly: ComVisible(false)]
// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID
[assembly: Guid("dd007737-a4e4-4ccf-8237-7e7d42d1282b")]
// 程序集的版本信息由下列四个值组成:
//
// 主版本
// 次版本
// 生成号
// 修订号
//
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
//通过使用 "*",如下所示:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@ -0,0 +1,93 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
namespace .Properties {
using System;
/// <summary>
/// 一个强类型的资源类,用于查找本地化的字符串等。
/// </summary>
// 此类是由 StronglyTypedResourceBuilder
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
// 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
// (以 /str 作为命令选项),或重新生成 VS 项目。
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
/// <summary>
/// 返回此类使用的缓存的 ResourceManager 实例。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("水下化学生物实验室项目显示软件.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// 重写当前线程的 CurrentUICulture 属性,对
/// 使用此强类型资源类的所有资源查找执行重写。
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap _1 {
get {
object obj = ResourceManager.GetObject("1", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap background {
get {
object obj = ResourceManager.GetObject("background", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// 查找 System.Drawing.Bitmap 类型的本地化资源。
/// </summary>
internal static System.Drawing.Bitmap sy_logo {
get {
object obj = ResourceManager.GetObject("sy-logo", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
}
}

View File

@ -0,0 +1,130 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="sy-logo" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\sy-logo.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="1" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\1.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="background" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\pic\background.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>

View File

@ -0,0 +1,30 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace .Properties
{
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
{
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default
{
get
{
return defaultInstance;
}
}
}
}

View File

@ -0,0 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>

Binary file not shown.

After

Width:  |  Height:  |  Size: 569 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

View File

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
</startup>
</configuration>

View File

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]

View File

@ -0,0 +1,81 @@
D:\Workspace\c#\水下化学生物实验室项目\水下化学生物实验室项目显示软件\水下化学生物实验室项目显示软件\bin\Debug\水下化学生物实验室项目显示软件.exe.config
D:\Workspace\c#\水下化学生物实验室项目\水下化学生物实验室项目显示软件\水下化学生物实验室项目显示软件\bin\Debug\水下化学生物实验室项目显示软件.exe
D:\Workspace\c#\水下化学生物实验室项目\水下化学生物实验室项目显示软件\水下化学生物实验室项目显示软件\bin\Debug\水下化学生物实验室项目显示软件.pdb
D:\Workspace\c#\水下化学生物实验室项目\水下化学生物实验室项目显示软件\水下化学生物实验室项目显示软件\obj\Debug\水下化学生物实验室项目显示软件.csproj.AssemblyReference.cache
D:\Workspace\c#\水下化学生物实验室项目\水下化学生物实验室项目显示软件\水下化学生物实验室项目显示软件\obj\Debug\水下化学生物实验室项目显示软件.csproj.SuggestedBindingRedirects.cache
D:\Workspace\c#\水下化学生物实验室项目\水下化学生物实验室项目显示软件\水下化学生物实验室项目显示软件\obj\Debug\水下化学生物实验室项目显示软件.Form1.resources
D:\Workspace\c#\水下化学生物实验室项目\水下化学生物实验室项目显示软件\水下化学生物实验室项目显示软件\obj\Debug\水下化学生物实验室项目显示软件.Properties.Resources.resources
D:\Workspace\c#\水下化学生物实验室项目\水下化学生物实验室项目显示软件\水下化学生物实验室项目显示软件\obj\Debug\水下化学生物实验室项目显示软件.csproj.GenerateResource.cache
D:\Workspace\c#\水下化学生物实验室项目\水下化学生物实验室项目显示软件\水下化学生物实验室项目显示软件\obj\Debug\水下化学生物实验室项目显示软件.csproj.CoreCompileInputs.cache
D:\Workspace\c#\水下化学生物实验室项目\水下化学生物实验室项目显示软件\水下化学生物实验室项目显示软件\obj\Debug\水下化学生物实验室项目显示软件.exe
D:\Workspace\c#\水下化学生物实验室项目\水下化学生物实验室项目显示软件\水下化学生物实验室项目显示软件\obj\Debug\水下化学生物实验室项目显示软件.pdb
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_01\bin\Debug\水下化学生物实验室项目显示软件.exe.config
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_01\bin\Debug\水下化学生物实验室项目显示软件.exe
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_01\bin\Debug\水下化学生物实验室项目显示软件.pdb
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.csproj.AssemblyReference.cache
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.Form1.resources
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.Properties.Resources.resources
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.csproj.GenerateResource.cache
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.csproj.CoreCompileInputs.cache
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.exe
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.pdb
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_02\ZTTMS_Display_SYSHS_20210817_20220817_01\bin\Debug\水下化学生物实验室项目显示软件.exe.config
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_02\ZTTMS_Display_SYSHS_20210817_20220817_01\bin\Debug\水下化学生物实验室项目显示软件.exe
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_02\ZTTMS_Display_SYSHS_20210817_20220817_01\bin\Debug\水下化学生物实验室项目显示软件.pdb
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_02\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.csproj.AssemblyReference.cache
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_02\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.Form1.resources
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_02\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.Properties.Resources.resources
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_02\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.csproj.GenerateResource.cache
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_02\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.csproj.CoreCompileInputs.cache
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_02\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.exe
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_02\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.pdb
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_03\ZTTMS_Display_SYSHS_20210817_20220817_01\bin\Debug\水下化学生物实验室项目显示软件.exe.config
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_03\ZTTMS_Display_SYSHS_20210817_20220817_01\bin\Debug\水下化学生物实验室项目显示软件.exe
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_03\ZTTMS_Display_SYSHS_20210817_20220817_01\bin\Debug\水下化学生物实验室项目显示软件.pdb
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_03\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.csproj.AssemblyReference.cache
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_03\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.Form1.resources
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_03\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.Properties.Resources.resources
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_03\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.csproj.GenerateResource.cache
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_03\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.csproj.CoreCompileInputs.cache
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_03\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.exe
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_03\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.pdb
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_04\ZTTMS_Display_SYSHS_20210817_20220817_01\bin\Debug\水下化学生物实验室项目显示软件.exe.config
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_04\ZTTMS_Display_SYSHS_20210817_20220817_01\bin\Debug\水下化学生物实验室项目显示软件.exe
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_04\ZTTMS_Display_SYSHS_20210817_20220817_01\bin\Debug\水下化学生物实验室项目显示软件.pdb
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_04\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.csproj.AssemblyReference.cache
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_04\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.Form1.resources
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_04\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.Properties.Resources.resources
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_04\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.csproj.GenerateResource.cache
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_04\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.csproj.CoreCompileInputs.cache
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_04\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.exe
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_04\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.pdb
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_05_UDPxiugai\ZTTMS_Display_SYSHS_20210817_20220817_01\bin\Debug\水下化学生物实验室项目显示软件.exe.config
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_05_UDPxiugai\ZTTMS_Display_SYSHS_20210817_20220817_01\bin\Debug\水下化学生物实验室项目显示软件.exe
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_05_UDPxiugai\ZTTMS_Display_SYSHS_20210817_20220817_01\bin\Debug\水下化学生物实验室项目显示软件.pdb
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_05_UDPxiugai\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.csproj.AssemblyReference.cache
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_05_UDPxiugai\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.Form1.resources
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_05_UDPxiugai\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.Properties.Resources.resources
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_05_UDPxiugai\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.csproj.GenerateResource.cache
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_05_UDPxiugai\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.csproj.CoreCompileInputs.cache
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_05_UDPxiugai\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.exe
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_05_UDPxiugai\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.pdb
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_06_UDPxiugai\ZTTMS_Display_SYSHS_20210817_20220817_01\bin\Debug\水下化学生物实验室项目显示软件.exe.config
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_06_UDPxiugai\ZTTMS_Display_SYSHS_20210817_20220817_01\bin\Debug\水下化学生物实验室项目显示软件.exe
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_06_UDPxiugai\ZTTMS_Display_SYSHS_20210817_20220817_01\bin\Debug\水下化学生物实验室项目显示软件.pdb
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_06_UDPxiugai\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.csproj.AssemblyReference.cache
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_06_UDPxiugai\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.Form1.resources
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_06_UDPxiugai\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.Properties.Resources.resources
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_06_UDPxiugai\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.csproj.GenerateResource.cache
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_06_UDPxiugai\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.csproj.CoreCompileInputs.cache
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_06_UDPxiugai\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.exe
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_06_UDPxiugai\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.pdb
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_07\ZTTMS_Display_SYSHS_20210817_20220817_01\bin\Debug\水下化学生物实验室项目显示软件.exe.config
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_07\ZTTMS_Display_SYSHS_20210817_20220817_01\bin\Debug\水下化学生物实验室项目显示软件.exe
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_07\ZTTMS_Display_SYSHS_20210817_20220817_01\bin\Debug\水下化学生物实验室项目显示软件.pdb
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_07\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.csproj.AssemblyReference.cache
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_07\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.Form1.resources
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_07\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.Properties.Resources.resources
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_07\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.csproj.GenerateResource.cache
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_07\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.csproj.CoreCompileInputs.cache
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_07\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.exe
D:\Users\ZTT\Desktop\20200909-三亚水下化学生物实验室项目\20220606-海试后整改\03.岸基显控软件\ZTTMS_Display_SYSHS_20210817_20220817_07\ZTTMS_Display_SYSHS_20210817_20220817_01\obj\Debug\水下化学生物实验室项目显示软件.pdb

Binary file not shown.

After

Width:  |  Height:  |  Size: 304 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 KiB

View File

@ -0,0 +1,94 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{DD007737-A4E4-4CCF-8237-7E7D42D1282B}</ProjectGuid>
<OutputType>WinExe</OutputType>
<RootNamespace>水下化学生物实验室项目显示软件</RootNamespace>
<AssemblyName>水下化学生物实验室项目显示软件</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<PlatformTarget>AnyCPU</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Form1.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="Model\SensorModel.cs" />
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<None Include="App.config" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\sy-logo.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\1.png" />
</ItemGroup>
<ItemGroup>
<None Include="pic\background.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

View File

@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.32014.148
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "水下化学生物实验室项目显示软件", "水下化学生物实验室项目显示软件.csproj", "{DD007737-A4E4-4CCF-8237-7E7D42D1282B}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{DD007737-A4E4-4CCF-8237-7E7D42D1282B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DD007737-A4E4-4CCF-8237-7E7D42D1282B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DD007737-A4E4-4CCF-8237-7E7D42D1282B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DD007737-A4E4-4CCF-8237-7E7D42D1282B}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {95330C18-3AA8-4D3C-BB21-67D9DF5739C1}
EndGlobalSection
EndGlobal