68 lines
3.4 KiB
C#
68 lines
3.4 KiB
C#
|
|
using LiveCharts;
|
|||
|
|
using LiveCharts.Defaults;
|
|||
|
|
using LiveCharts.Wpf;
|
|||
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Collections.ObjectModel;
|
|||
|
|
using System.Diagnostics;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Text;
|
|||
|
|
using System.Threading.Tasks;
|
|||
|
|
using System.Windows;
|
|||
|
|
using System.Windows.Controls;
|
|||
|
|
using System.Windows.Data;
|
|||
|
|
using System.Windows.Documents;
|
|||
|
|
using System.Windows.Input;
|
|||
|
|
using System.Windows.Media;
|
|||
|
|
using System.Windows.Media.Imaging;
|
|||
|
|
using System.Windows.Navigation;
|
|||
|
|
using System.Windows.Shapes;
|
|||
|
|
using System.Windows.Threading;
|
|||
|
|
using 垂直剖面动态观测系统.Common;
|
|||
|
|
using 垂直剖面动态观测系统.Model;
|
|||
|
|
using 垂直剖面动态观测系统.ViewModel;
|
|||
|
|
|
|||
|
|
namespace 垂直剖面动态观测系统.View
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// FirstPageView.xaml 的交互逻辑
|
|||
|
|
/// </summary>
|
|||
|
|
public partial class FirstPageView : UserControl
|
|||
|
|
{
|
|||
|
|
private DispatcherTimer ShowTimer;
|
|||
|
|
public FirstPageView()
|
|||
|
|
{
|
|||
|
|
InitializeComponent();
|
|||
|
|
|
|||
|
|
//FirstPageViewModel model = new FirstPageViewModel();
|
|||
|
|
|
|||
|
|
GlobalValues model = new GlobalValues();
|
|||
|
|
|
|||
|
|
this.DataContext = model;
|
|||
|
|
|
|||
|
|
|
|||
|
|
//model.PortName = GlobalValues.LoginInfo.PortName;
|
|||
|
|
//model.BaudRate = GlobalValues.LoginInfo.BaudRate;
|
|||
|
|
|
|||
|
|
|
|||
|
|
//添加timer
|
|||
|
|
ShowTimer = new System.Windows.Threading.DispatcherTimer();
|
|||
|
|
ShowTimer.Tick += new EventHandler(showTimer);
|
|||
|
|
ShowTimer.Interval = new TimeSpan(0, 0, 0, 1, 0);
|
|||
|
|
ShowTimer.Start();
|
|||
|
|
|
|||
|
|
//Introduction.Text = "中天海洋系统有限公司成立于2016年04月29日,注册地位于江苏省如东县洋口港经济开发区洋口港商务大厦,法定代表人为薛驰。经营范围包括水质监测系统、浮标监测系统、岸基自动监测站、水下安防系统、海缆监测系统、海底接驳盒、海洋及江河湖库信息观测网络系统装备、海洋及水质传感器、舰载连接器、水密连接器及其他连接器件、弯曲限制器、海缆接头盒、锚固及其它海工器件、绞车系统、各类光缆、电缆、光电复合缆附件及金具、光缆通讯设备、电源等产品设备及其组件、配件、软件的研发、设计、制造、检测、销售、租赁、施工、维护;各类海洋工程、环境工程、水利工程的技术服务、施工服务;船舶设备租赁;光伏组件及配套产品的生产、销售;自营和代理相关产品及技术的进出口业务。";
|
|||
|
|
|
|||
|
|
ProjectIntroduction.Text = "针对海域天然气水合物试采环境监测需求,研制海洋天然气水合物开发一体化实时观测网关键节点,实现水气界面 - 海水剖面 - 海床底质的自上而下、从点至面的全天候、原位、长期、连续、实时、高分辨率和高精度监测,通过综合性立体观测、数据深度挖掘、多种观测融合,并对相关参数的前后对比和综合研判,评估天然气水合物开发的环境效应及潜在的环境风险,为构建天然气水合物开采“井下 - 海底 - 水体 - 海面”四位一体实时小型海洋环境监测系统提供技术支撑。";
|
|||
|
|
}
|
|||
|
|
//日期
|
|||
|
|
public void showTimer(object sender, EventArgs e)
|
|||
|
|
{
|
|||
|
|
this.Datatime.Text = "";
|
|||
|
|
//获得年月日
|
|||
|
|
this.Datatime.Text +=" "+ DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"); //yyyy年MM月dd日
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
}
|