diff --git a/JiangsuEarthquake/.vs/JiangsuEarthquake/DesignTimeBuild/.dtbcache.v2 b/JiangsuEarthquake/.vs/JiangsuEarthquake/DesignTimeBuild/.dtbcache.v2 index d5ec4b6..893fbe1 100644 Binary files a/JiangsuEarthquake/.vs/JiangsuEarthquake/DesignTimeBuild/.dtbcache.v2 and b/JiangsuEarthquake/.vs/JiangsuEarthquake/DesignTimeBuild/.dtbcache.v2 differ diff --git a/JiangsuEarthquake/.vs/JiangsuEarthquake/v17/.suo b/JiangsuEarthquake/.vs/JiangsuEarthquake/v17/.suo index d93cb04..32c7518 100644 Binary files a/JiangsuEarthquake/.vs/JiangsuEarthquake/v17/.suo and b/JiangsuEarthquake/.vs/JiangsuEarthquake/v17/.suo differ diff --git a/JiangsuEarthquake/.vs/JiangsuEarthquake/v17/DocumentLayout.json b/JiangsuEarthquake/.vs/JiangsuEarthquake/v17/DocumentLayout.json index d3b07b5..76d506b 100644 --- a/JiangsuEarthquake/.vs/JiangsuEarthquake/v17/DocumentLayout.json +++ b/JiangsuEarthquake/.vs/JiangsuEarthquake/v17/DocumentLayout.json @@ -2,21 +2,37 @@ "Version": 1, "WorkspaceRootPath": "F:\\Code\\JSEQ\\20240301_JSEQ_upperpc\\JiangsuEarthquake\\", "Documents": [ + { + "AbsoluteMoniker": "D:0:0:{51CD2C1B-B7CD-4AC0-8087-846E14D316AD}|JiangsuEarthquake\\JiangsuEarthquake.csproj|f:\\code\\jseq\\20240301_jseq_upperpc\\jiangsuearthquake\\jiangsuearthquake\\views\\systemcontrolview.xaml||{F11ACC28-31D1-4C80-A34B-F4E09D3D753C}", + "RelativeMoniker": "D:0:0:{51CD2C1B-B7CD-4AC0-8087-846E14D316AD}|JiangsuEarthquake\\JiangsuEarthquake.csproj|solutionrelative:jiangsuearthquake\\views\\systemcontrolview.xaml||{F11ACC28-31D1-4C80-A34B-F4E09D3D753C}" + }, { "AbsoluteMoniker": "D:0:0:{51CD2C1B-B7CD-4AC0-8087-846E14D316AD}|JiangsuEarthquake\\JiangsuEarthquake.csproj|f:\\code\\jseq\\20240301_jseq_upperpc\\jiangsuearthquake\\jiangsuearthquake\\models\\seismographmodel.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", "RelativeMoniker": "D:0:0:{51CD2C1B-B7CD-4AC0-8087-846E14D316AD}|JiangsuEarthquake\\JiangsuEarthquake.csproj|solutionrelative:jiangsuearthquake\\models\\seismographmodel.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" }, { - "AbsoluteMoniker": "D:0:0:{51CD2C1B-B7CD-4AC0-8087-846E14D316AD}|JiangsuEarthquake\\JiangsuEarthquake.csproj|F:\\Code\\JSEQ\\20240301_JSEQ_upperpc\\JiangsuEarthquake\\jiangsuearthquake\\common\\tools.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", - "RelativeMoniker": "D:0:0:{51CD2C1B-B7CD-4AC0-8087-846E14D316AD}|JiangsuEarthquake\\JiangsuEarthquake.csproj|solutionrelative:jiangsuearthquake\\common\\tools.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + "AbsoluteMoniker": "D:0:0:{51CD2C1B-B7CD-4AC0-8087-846E14D316AD}|JiangsuEarthquake\\JiangsuEarthquake.csproj|F:\\Code\\JSEQ\\20240301_JSEQ_upperpc\\JiangsuEarthquake\\jiangsuearthquake\\models\\volcurcollectormodel.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{51CD2C1B-B7CD-4AC0-8087-846E14D316AD}|JiangsuEarthquake\\JiangsuEarthquake.csproj|solutionrelative:jiangsuearthquake\\models\\volcurcollectormodel.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" }, { "AbsoluteMoniker": "D:0:0:{51CD2C1B-B7CD-4AC0-8087-846E14D316AD}|JiangsuEarthquake\\JiangsuEarthquake.csproj|F:\\Code\\JSEQ\\20240301_JSEQ_upperpc\\JiangsuEarthquake\\jiangsuearthquake\\viewmodels\\mainviewmodel.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", "RelativeMoniker": "D:0:0:{51CD2C1B-B7CD-4AC0-8087-846E14D316AD}|JiangsuEarthquake\\JiangsuEarthquake.csproj|solutionrelative:jiangsuearthquake\\viewmodels\\mainviewmodel.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" }, { - "AbsoluteMoniker": "D:0:0:{51CD2C1B-B7CD-4AC0-8087-846E14D316AD}|JiangsuEarthquake\\JiangsuEarthquake.csproj|F:\\Code\\JSEQ\\20240301_JSEQ_upperpc\\JiangsuEarthquake\\jiangsuearthquake\\models\\volcurcollectormodel.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", - "RelativeMoniker": "D:0:0:{51CD2C1B-B7CD-4AC0-8087-846E14D316AD}|JiangsuEarthquake\\JiangsuEarthquake.csproj|solutionrelative:jiangsuearthquake\\models\\volcurcollectormodel.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + "AbsoluteMoniker": "D:0:0:{51CD2C1B-B7CD-4AC0-8087-846E14D316AD}|JiangsuEarthquake\\JiangsuEarthquake.csproj|f:\\code\\jseq\\20240301_jseq_upperpc\\jiangsuearthquake\\jiangsuearthquake\\models\\earthquakesensormodel.cs||{8B382828-6202-11D1-8870-0000F87579D2}", + "RelativeMoniker": "D:0:0:{51CD2C1B-B7CD-4AC0-8087-846E14D316AD}|JiangsuEarthquake\\JiangsuEarthquake.csproj|solutionrelative:jiangsuearthquake\\models\\earthquakesensormodel.cs||{8B382828-6202-11D1-8870-0000F87579D2}" + }, + { + "AbsoluteMoniker": "D:0:0:{51CD2C1B-B7CD-4AC0-8087-846E14D316AD}|JiangsuEarthquake\\JiangsuEarthquake.csproj|f:\\code\\jseq\\20240301_jseq_upperpc\\jiangsuearthquake\\jiangsuearthquake\\models\\earthquakeparasetmodel.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{51CD2C1B-B7CD-4AC0-8087-846E14D316AD}|JiangsuEarthquake\\JiangsuEarthquake.csproj|solutionrelative:jiangsuearthquake\\models\\earthquakeparasetmodel.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{51CD2C1B-B7CD-4AC0-8087-846E14D316AD}|JiangsuEarthquake\\JiangsuEarthquake.csproj|f:\\code\\jseq\\20240301_jseq_upperpc\\jiangsuearthquake\\jiangsuearthquake\\dataaccess\\dbhelper.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{51CD2C1B-B7CD-4AC0-8087-846E14D316AD}|JiangsuEarthquake\\JiangsuEarthquake.csproj|solutionrelative:jiangsuearthquake\\dataaccess\\dbhelper.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" + }, + { + "AbsoluteMoniker": "D:0:0:{51CD2C1B-B7CD-4AC0-8087-846E14D316AD}|JiangsuEarthquake\\JiangsuEarthquake.csproj|F:\\Code\\JSEQ\\20240301_JSEQ_upperpc\\JiangsuEarthquake\\jiangsuearthquake\\common\\tools.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", + "RelativeMoniker": "D:0:0:{51CD2C1B-B7CD-4AC0-8087-846E14D316AD}|JiangsuEarthquake\\JiangsuEarthquake.csproj|solutionrelative:jiangsuearthquake\\common\\tools.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}" }, { "AbsoluteMoniker": "D:0:0:{51CD2C1B-B7CD-4AC0-8087-846E14D316AD}|JiangsuEarthquake\\JiangsuEarthquake.csproj|F:\\Code\\JSEQ\\20240301_JSEQ_upperpc\\JiangsuEarthquake\\jiangsuearthquake\\models\\clientmodel.cs||{A6C744A8-0E4A-4FC6-886A-064283054674}", @@ -26,10 +42,6 @@ "AbsoluteMoniker": "D:0:0:{51CD2C1B-B7CD-4AC0-8087-846E14D316AD}|JiangsuEarthquake\\JiangsuEarthquake.csproj|F:\\Code\\JSEQ\\20240301_JSEQ_upperpc\\JiangsuEarthquake\\jiangsuearthquake\\app.config||{FA3CD31E-987B-443A-9B81-186104E8DAC1}", "RelativeMoniker": "D:0:0:{51CD2C1B-B7CD-4AC0-8087-846E14D316AD}|JiangsuEarthquake\\JiangsuEarthquake.csproj|solutionrelative:jiangsuearthquake\\app.config||{FA3CD31E-987B-443A-9B81-186104E8DAC1}" }, - { - "AbsoluteMoniker": "D:0:0:{51CD2C1B-B7CD-4AC0-8087-846E14D316AD}|JiangsuEarthquake\\JiangsuEarthquake.csproj|F:\\Code\\JSEQ\\20240301_JSEQ_upperpc\\JiangsuEarthquake\\jiangsuearthquake\\views\\systemcontrolview.xaml||{F11ACC28-31D1-4C80-A34B-F4E09D3D753C}", - "RelativeMoniker": "D:0:0:{51CD2C1B-B7CD-4AC0-8087-846E14D316AD}|JiangsuEarthquake\\JiangsuEarthquake.csproj|solutionrelative:jiangsuearthquake\\views\\systemcontrolview.xaml||{F11ACC28-31D1-4C80-A34B-F4E09D3D753C}" - }, { "AbsoluteMoniker": "D:0:0:{51CD2C1B-B7CD-4AC0-8087-846E14D316AD}|JiangsuEarthquake\\JiangsuEarthquake.csproj|F:\\Code\\JSEQ\\20240301_JSEQ_upperpc\\JiangsuEarthquake\\jiangsuearthquake\\mainwindow.xaml||{F11ACC28-31D1-4C80-A34B-F4E09D3D753C}", "RelativeMoniker": "D:0:0:{51CD2C1B-B7CD-4AC0-8087-846E14D316AD}|JiangsuEarthquake\\JiangsuEarthquake.csproj|solutionrelative:jiangsuearthquake\\mainwindow.xaml||{F11ACC28-31D1-4C80-A34B-F4E09D3D753C}" @@ -46,11 +58,11 @@ "DocumentGroups": [ { "DockedWidth": 196, - "SelectedChildIndex": 2, + "SelectedChildIndex": 4, "Children": [ { "$type": "Document", - "DocumentIndex": 5, + "DocumentIndex": 9, "Title": "App.config", "DocumentMoniker": "F:\\Code\\JSEQ\\20240301_JSEQ_upperpc\\JiangsuEarthquake\\JiangsuEarthquake\\App.config", "RelativeDocumentMoniker": "JiangsuEarthquake\\App.config", @@ -63,32 +75,84 @@ }, { "$type": "Document", - "DocumentIndex": 3, + "DocumentIndex": 4, + "Title": "EarthquakeSensorModel.cs", + "DocumentMoniker": "F:\\Code\\JSEQ\\20240301_JSEQ_upperpc\\JiangsuEarthquake\\JiangsuEarthquake\\Models\\EarthquakeSensorModel.cs", + "RelativeDocumentMoniker": "JiangsuEarthquake\\Models\\EarthquakeSensorModel.cs", + "ToolTip": "F:\\Code\\JSEQ\\20240301_JSEQ_upperpc\\JiangsuEarthquake\\JiangsuEarthquake\\Models\\EarthquakeSensorModel.cs", + "RelativeToolTip": "JiangsuEarthquake\\Models\\EarthquakeSensorModel.cs", + "ViewState": "AQIAAAAAAAAAAAAAAAAAABoAAAASAAAA", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2024-04-29T06:08:55.808Z", + "EditorCaption": "" + }, + { + "$type": "Document", + "DocumentIndex": 5, + "Title": "EarthQuakeParaSetModel.cs", + "DocumentMoniker": "F:\\Code\\JSEQ\\20240301_JSEQ_upperpc\\JiangsuEarthquake\\JiangsuEarthquake\\Models\\EarthQuakeParaSetModel.cs", + "RelativeDocumentMoniker": "JiangsuEarthquake\\Models\\EarthQuakeParaSetModel.cs", + "ToolTip": "F:\\Code\\JSEQ\\20240301_JSEQ_upperpc\\JiangsuEarthquake\\JiangsuEarthquake\\Models\\EarthQuakeParaSetModel.cs", + "RelativeToolTip": "JiangsuEarthquake\\Models\\EarthQuakeParaSetModel.cs", + "ViewState": "AQIAAAAAAAAAAAAAAAAAAIsAAAA9AAAA", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2024-04-29T06:08:26.656Z", + "EditorCaption": "" + }, + { + "$type": "Document", + "DocumentIndex": 6, + "Title": "DBHelper.cs", + "DocumentMoniker": "F:\\Code\\JSEQ\\20240301_JSEQ_upperpc\\JiangsuEarthquake\\JiangsuEarthquake\\DataAccess\\DBHelper.cs", + "RelativeDocumentMoniker": "JiangsuEarthquake\\DataAccess\\DBHelper.cs", + "ToolTip": "F:\\Code\\JSEQ\\20240301_JSEQ_upperpc\\JiangsuEarthquake\\JiangsuEarthquake\\DataAccess\\DBHelper.cs", + "RelativeToolTip": "JiangsuEarthquake\\DataAccess\\DBHelper.cs", + "ViewState": "AQIAAPgAAAAAAAAAAAAUwAQBAAALAAAA", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", + "WhenOpened": "2024-04-29T06:07:00.492Z", + "EditorCaption": "" + }, + { + "$type": "Document", + "DocumentIndex": 0, + "Title": "SystemControlView.xaml", + "DocumentMoniker": "F:\\Code\\JSEQ\\20240301_JSEQ_upperpc\\JiangsuEarthquake\\JiangsuEarthquake\\Views\\SystemControlView.xaml", + "RelativeDocumentMoniker": "JiangsuEarthquake\\Views\\SystemControlView.xaml", + "ToolTip": "F:\\Code\\JSEQ\\20240301_JSEQ_upperpc\\JiangsuEarthquake\\JiangsuEarthquake\\Views\\SystemControlView.xaml", + "RelativeToolTip": "JiangsuEarthquake\\Views\\SystemControlView.xaml", + "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003549|", + "WhenOpened": "2024-04-29T05:22:55.064Z", + "EditorCaption": "" + }, + { + "$type": "Document", + "DocumentIndex": 2, "Title": "VolCurCollectorModel.cs", "DocumentMoniker": "F:\\Code\\JSEQ\\20240301_JSEQ_upperpc\\JiangsuEarthquake\\JiangsuEarthquake\\Models\\VolCurCollectorModel.cs", "RelativeDocumentMoniker": "JiangsuEarthquake\\Models\\VolCurCollectorModel.cs", "ToolTip": "F:\\Code\\JSEQ\\20240301_JSEQ_upperpc\\JiangsuEarthquake\\JiangsuEarthquake\\Models\\VolCurCollectorModel.cs", "RelativeToolTip": "JiangsuEarthquake\\Models\\VolCurCollectorModel.cs", - "ViewState": "AQIAAC4AAAAAAAAAAAAkwEAAAAAtAAAA", + "ViewState": "AQIAAG4AAAAAAAAAAAAAAEAAAAAtAAAA", "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", - "WhenOpened": "2024-04-25T08:11:58.297Z" + "WhenOpened": "2024-04-25T08:11:58.297Z", + "EditorCaption": "" }, { "$type": "Document", - "DocumentIndex": 0, + "DocumentIndex": 1, "Title": "SeismographModel.cs", "DocumentMoniker": "F:\\Code\\JSEQ\\20240301_JSEQ_upperpc\\JiangsuEarthquake\\JiangsuEarthquake\\Models\\SeismographModel.cs", "RelativeDocumentMoniker": "JiangsuEarthquake\\Models\\SeismographModel.cs", "ToolTip": "F:\\Code\\JSEQ\\20240301_JSEQ_upperpc\\JiangsuEarthquake\\JiangsuEarthquake\\Models\\SeismographModel.cs", "RelativeToolTip": "JiangsuEarthquake\\Models\\SeismographModel.cs", - "ViewState": "AQIAAL8AAAAAAAAAAAAqwNMAAAAAAAAA", + "ViewState": "AQIAAHEAAAAAAAAAAAAkwHMBAAAAAAAA", "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", "WhenOpened": "2024-04-25T08:11:19.51Z", "EditorCaption": "" }, { "$type": "Document", - "DocumentIndex": 1, + "DocumentIndex": 7, "Title": "Tools.cs", "DocumentMoniker": "F:\\Code\\JSEQ\\20240301_JSEQ_upperpc\\JiangsuEarthquake\\JiangsuEarthquake\\Common\\Tools.cs", "RelativeDocumentMoniker": "JiangsuEarthquake\\Common\\Tools.cs", @@ -101,7 +165,7 @@ }, { "$type": "Document", - "DocumentIndex": 4, + "DocumentIndex": 8, "Title": "ClientModel.cs", "DocumentMoniker": "F:\\Code\\JSEQ\\20240301_JSEQ_upperpc\\JiangsuEarthquake\\JiangsuEarthquake\\Models\\ClientModel.cs", "RelativeDocumentMoniker": "JiangsuEarthquake\\Models\\ClientModel.cs", @@ -113,7 +177,7 @@ }, { "$type": "Document", - "DocumentIndex": 8, + "DocumentIndex": 11, "Title": "MainWindow.xaml.cs", "DocumentMoniker": "F:\\Code\\JSEQ\\20240301_JSEQ_upperpc\\JiangsuEarthquake\\JiangsuEarthquake\\MainWindow.xaml.cs", "RelativeDocumentMoniker": "JiangsuEarthquake\\MainWindow.xaml.cs", @@ -125,30 +189,20 @@ }, { "$type": "Document", - "DocumentIndex": 6, - "Title": "SystemControlView.xaml", - "DocumentMoniker": "F:\\Code\\JSEQ\\20240301_JSEQ_upperpc\\JiangsuEarthquake\\JiangsuEarthquake\\Views\\SystemControlView.xaml", - "RelativeDocumentMoniker": "JiangsuEarthquake\\Views\\SystemControlView.xaml", - "ToolTip": "F:\\Code\\JSEQ\\20240301_JSEQ_upperpc\\JiangsuEarthquake\\JiangsuEarthquake\\Views\\SystemControlView.xaml", - "RelativeToolTip": "JiangsuEarthquake\\Views\\SystemControlView.xaml", - "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.003549|", - "WhenOpened": "2024-04-15T03:01:04.303Z" - }, - { - "$type": "Document", - "DocumentIndex": 2, + "DocumentIndex": 3, "Title": "MainViewModel.cs", "DocumentMoniker": "F:\\Code\\JSEQ\\20240301_JSEQ_upperpc\\JiangsuEarthquake\\JiangsuEarthquake\\ViewModels\\MainViewModel.cs", "RelativeDocumentMoniker": "JiangsuEarthquake\\ViewModels\\MainViewModel.cs", "ToolTip": "F:\\Code\\JSEQ\\20240301_JSEQ_upperpc\\JiangsuEarthquake\\JiangsuEarthquake\\ViewModels\\MainViewModel.cs", "RelativeToolTip": "JiangsuEarthquake\\ViewModels\\MainViewModel.cs", - "ViewState": "AQIAAEMCAAAAAAAAAAAUwJUEAAAIAAAA", + "ViewState": "AQIAACAAAAAAAAAAAAAUwDcAAABCAAAA", "Icon": "ae27a6b0-e345-4288-96df-5eaf394ee369.000738|", - "WhenOpened": "2024-03-12T06:03:03.53Z" + "WhenOpened": "2024-03-12T06:03:03.53Z", + "EditorCaption": "" }, { "$type": "Document", - "DocumentIndex": 7, + "DocumentIndex": 10, "Title": "MainWindow.xaml", "DocumentMoniker": "F:\\Code\\JSEQ\\20240301_JSEQ_upperpc\\JiangsuEarthquake\\JiangsuEarthquake\\MainWindow.xaml", "RelativeDocumentMoniker": "JiangsuEarthquake\\MainWindow.xaml", diff --git a/JiangsuEarthquake/JiangsuEarthquake/Models/EarthQuakeParaSetModel.cs b/JiangsuEarthquake/JiangsuEarthquake/Models/EarthQuakeParaSetModel.cs index c3ba7c7..3a0abb8 100644 --- a/JiangsuEarthquake/JiangsuEarthquake/Models/EarthQuakeParaSetModel.cs +++ b/JiangsuEarthquake/JiangsuEarthquake/Models/EarthQuakeParaSetModel.cs @@ -17,7 +17,7 @@ namespace JiangsuEarthquake.Models public int StationNo { get { return sationNo; } - set { sationNo = value; this.DoNotify(); DBHelper.InsertData("earthquakeparaset", StationID, RecordTime, "StationNo", StationNo); } + set { sationNo = value; this.DoNotify(); } } @@ -29,7 +29,7 @@ namespace JiangsuEarthquake.Models public string StationName { get { return stationName; } - set { stationName = value; this.DoNotify(); DBHelper.InsertData("earthquakeparaset", StationID, RecordTime, "StationName", StationName); } + set { stationName = value; this.DoNotify(); } } @@ -41,7 +41,7 @@ namespace JiangsuEarthquake.Models public string StationShortName { get { return stationShortName; } - set { stationShortName = value; this.DoNotify(); DBHelper.InsertData("earthquakeparaset", StationID, RecordTime, "StationShortName", StationShortName); } + set { stationShortName = value; this.DoNotify(); } } @@ -53,7 +53,7 @@ namespace JiangsuEarthquake.Models public short EarthQuakeCount { get { return earthQuakeCount; } - set { earthQuakeCount = value; this.DoNotify(); DBHelper.InsertData("earthquakeparaset", StationID, RecordTime, "EarthQuakeCount", EarthQuakeCount); } + set { earthQuakeCount = value; this.DoNotify(); } } @@ -65,7 +65,7 @@ namespace JiangsuEarthquake.Models public short ChannelsNo { get { return channelsNo; } - set { channelsNo = value; this.DoNotify(); DBHelper.InsertData("earthquakeparaset", StationID, RecordTime, "ChannelsNo", ChannelsNo); } + set { channelsNo = value; this.DoNotify(); } } @@ -77,7 +77,7 @@ namespace JiangsuEarthquake.Models public int WD { get { return wd; } - set { wd = value; this.DoNotify(); DBHelper.InsertData("earthquakeparaset", StationID, RecordTime, "WD", WD); } + set { wd = value; this.DoNotify(); } } @@ -89,7 +89,7 @@ namespace JiangsuEarthquake.Models public int JD { get { return jd; } - set { jd = value; this.DoNotify(); DBHelper.InsertData("earthquakeparaset", StationID, RecordTime, "JD", JD); } + set { jd = value; this.DoNotify(); } } @@ -101,7 +101,7 @@ namespace JiangsuEarthquake.Models public int GaoCheng { get { return gaoCheng; } - set { gaoCheng = value; this.DoNotify(); DBHelper.InsertData("earthquakeparaset", StationID, RecordTime, "GaoCheng", GaoCheng); } + set { gaoCheng = value; this.DoNotify(); } } @@ -113,7 +113,7 @@ namespace JiangsuEarthquake.Models public string StartTime { get { return startTime; } - set { startTime = value; this.DoNotify(); DBHelper.InsertData("earthquakeparaset", StationID, RecordTime, "StartTime", StartTime); } + set { startTime = value; this.DoNotify(); } } @@ -125,7 +125,7 @@ namespace JiangsuEarthquake.Models public string Station_Id { get { return stationid; } - set { stationid = value; this.DoNotify(); DBHelper.InsertData("earthquakeparaset", StationID, RecordTime, "Station_Id", Station_Id); } + set { stationid = value; this.DoNotify(); } } @@ -137,7 +137,7 @@ namespace JiangsuEarthquake.Models public string Software_Version { get { return software_version; } - set { software_version = value; this.DoNotify(); DBHelper.InsertData("earthquakeparaset", StationID, RecordTime, "Software_Version", Software_Version); } + set { software_version = value; this.DoNotify(); } } } } diff --git a/JiangsuEarthquake/JiangsuEarthquake/Models/EarthquakeSensorModel.cs b/JiangsuEarthquake/JiangsuEarthquake/Models/EarthquakeSensorModel.cs index f3cdaf6..2e6878e 100644 --- a/JiangsuEarthquake/JiangsuEarthquake/Models/EarthquakeSensorModel.cs +++ b/JiangsuEarthquake/JiangsuEarthquake/Models/EarthquakeSensorModel.cs @@ -9,96 +9,6 @@ namespace JiangsuEarthquake.Models { public class EarthquakeSensorModel : ParameterModel { - public int[] Exi_Index { get; set; } = new int[] { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18 }; - - public object this[int index] - { - get { return null; } - set - { - float Set_Value = Convert.ToSingle(value); - //if (Set_Value < 0) //如果出现为负数的异常数据 则直接将该数据变为0 - // Set_Value = 0; - switch (index) - { - case 1: - this.Out_Vol = Set_Value; - DBHelper.InsertData("earthquakestate", StationID, RecordTime, "Out_Vol", Out_Vol); - break; - case 2: - this.Backup_Vol = Set_Value; - DBHelper.InsertData("earthquakestate", StationID, RecordTime, "Backup_Vol", Backup_Vol); - break; - case 3: - this.Pre = Set_Value; - DBHelper.InsertData("earthquakestate", StationID, RecordTime, "Pre", Pre); - break; - case 4: - this.Tem = Set_Value; - DBHelper.InsertData("earthquakestate", StationID, RecordTime, "Tem", Tem); - break; - case 5: - this.Sei_Tilt_Angle = Set_Value; - DBHelper.InsertData("earthquakestate", StationID, RecordTime, "Sei_Tilt_Angle", Sei_Tilt_Angle); - break; - case 6: - this.OBS_Tilt_Angle = Set_Value; - DBHelper.InsertData("earthquakestate", StationID, RecordTime, "OBS_Tilt_Angle", OBS_Tilt_Angle); - break; - case 7: - this.Species_Dif = Set_Value; - DBHelper.InsertData("earthquakestate", StationID, RecordTime, "Species_Dif", Species_Dif); - break; - case 8: - this.Frequency_Dif = Set_Value; - DBHelper.InsertData("earthquakestate", StationID, RecordTime, "Frequency_Dif", Frequency_Dif); - break; - case 9: - this.CF_Total_Cap = Set_Value / 1024; - DBHelper.InsertData("earthquakestate", StationID, RecordTime, "CF_Total_Cap", CF_Total_Cap); - break; - case 10: - this.CF_Usable_Cap = Set_Value / 1024; - DBHelper.InsertData("earthquakestate", StationID, RecordTime, "CF_Usable_Cap", CF_Usable_Cap); - break; - case 11: - this.SD_Total_Cap1 = Set_Value / 1024; - DBHelper.InsertData("earthquakestate", StationID, RecordTime, "SD_Total_Cap1", SD_Total_Cap1); - break; - case 12: - this.SD_Usable_Cap1 = Set_Value / 1024; - DBHelper.InsertData("earthquakestate", StationID, RecordTime, "SD_Usable_Cap1", SD_Usable_Cap1); - break; - case 13: - this.SD_Total_Cap2 = Set_Value / 1024; - DBHelper.InsertData("earthquakestate", StationID, RecordTime, "SD_Total_Cap2", SD_Total_Cap2); - break; - case 14: - this.SD_Usable_Cap2 = Set_Value / 1024; - DBHelper.InsertData("earthquakestate", StationID, RecordTime, "SD_Usable_Cap2", SD_Usable_Cap2); - break; - case 15: - this.Sei_U_Point = Set_Value; - DBHelper.InsertData("earthquakestate", StationID, RecordTime, "Sei_U_Point", Sei_U_Point); - break; - case 16: - this.Sei_V_Point = Set_Value; - DBHelper.InsertData("earthquakestate", StationID, RecordTime, "Sei_V_Point", Sei_V_Point); - break; - case 17: - this.Sei_W_Point = Set_Value; - DBHelper.InsertData("earthquakestate", StationID, RecordTime, "Sei_W_Point", Sei_W_Point); - break; - case 18: - this.North_Angle = Set_Value; - DBHelper.InsertData("earthquakestate", StationID, RecordTime, "North_Angle", North_Angle); - break; - default: - break; - } - } - } - private float out_Vol; /// diff --git a/JiangsuEarthquake/JiangsuEarthquake/Models/SeismographModel.cs b/JiangsuEarthquake/JiangsuEarthquake/Models/SeismographModel.cs index d9f877b..1b5c423 100644 --- a/JiangsuEarthquake/JiangsuEarthquake/Models/SeismographModel.cs +++ b/JiangsuEarthquake/JiangsuEarthquake/Models/SeismographModel.cs @@ -1,6 +1,7 @@ using HandyControl.Controls; using JiangsuEarthquake.Common; using JiangsuEarthquake.DataAccess; +using JiangsuEarthquake.ViewModels; using System; using System.Collections.Generic; using System.Linq; @@ -77,7 +78,7 @@ namespace JiangsuEarthquake.Models string User = "Admin"; byte[] userByte = System.Text.Encoding.ASCII.GetBytes(User); byte[] userByteArray = new byte[16]; - if(userByte.Length != 16) + if (userByte.Length != 16) { for (int i = 0; i < 16; i++) { @@ -120,7 +121,7 @@ namespace JiangsuEarthquake.Models checkCode = Tools.CRCCalc(checkByte.ToArray()); dataSend.AddRange(checkCode); - if(id == 1) + if (id == 1) { MainWindow.mainViewModel.clientModelDZY1.SendMessage(dataSend.ToArray()); } @@ -171,10 +172,10 @@ namespace JiangsuEarthquake.Models string stationNameAbb = Encoding.UTF8.GetString(stationNameAbbData.ToArray()); //地震计总数 - int seisNum = BitConverter.ToInt16(new byte[] { dataRecv[45], dataRecv[44] }, 0); + short seisNum = BitConverter.ToInt16(new byte[] { dataRecv[45], dataRecv[44] }, 0); //总通道数 - int passNum = BitConverter.ToInt16(new byte[] { dataRecv[47], dataRecv[46] }, 0); + short passNum = BitConverter.ToInt16(new byte[] { dataRecv[47], dataRecv[46] }, 0); //纬度 int latitude = BitConverter.ToInt16(new byte[] { dataRecv[51], dataRecv[50], dataRecv[49], dataRecv[48] }, 0); @@ -182,7 +183,7 @@ namespace JiangsuEarthquake.Models //经度 int longitude = BitConverter.ToInt16(new byte[] { dataRecv[55], dataRecv[54], dataRecv[53], dataRecv[52] }, 0); - //经度 + //高程 int elevation = BitConverter.ToInt16(new byte[] { dataRecv[59], dataRecv[58], dataRecv[57], dataRecv[56] }, 0); //起用日期 @@ -199,6 +200,42 @@ namespace JiangsuEarthquake.Models for (int i = 96; i < 128; i++) softVersionList.Add(dataRecv[i]); string softVersion = Encoding.UTF8.GetString(softVersionList.ToArray()); + + //数据存储 + sql = $"insert into earthquakeoriginaldata(StationID,RecordTime,StationNo,StationName," + + $"StationShortName,EarthQuakeCount,ChannelsNo,WD,JD,GaoCheng,StartTime,Station_Id," + + $"Software_Version) values('{id}','{DateTime.Now}','{stationNum}','{stationName}','{stationNameAbb}','{seisNum}','{passNum}','{latitude}','{longitude}','{elevation}','{enablingDate}','{tetworkLogo}','{softVersion}');"; + DBHelper.ExecuteNonQuery(sql, 1); + + //通知到前端 + if (id == 1) + { + MainViewModel.earthQuakeParaSetModel1.StationID = stationNum; + MainViewModel.earthQuakeParaSetModel1.StationName = stationName; + MainViewModel.earthQuakeParaSetModel1.StationShortName = stationNameAbb; + MainViewModel.earthQuakeParaSetModel1.EarthQuakeCount = seisNum; + MainViewModel.earthQuakeParaSetModel1.ChannelsNo = passNum; + MainViewModel.earthQuakeParaSetModel1.WD = latitude; + MainViewModel.earthQuakeParaSetModel1.JD = longitude; + MainViewModel.earthQuakeParaSetModel1.GaoCheng = elevation; + MainViewModel.earthQuakeParaSetModel1.StartTime = enablingDate; + MainViewModel.earthQuakeParaSetModel1.Station_Id = tetworkLogo; + MainViewModel.earthQuakeParaSetModel1.Software_Version = softVersion; + } + else + { + MainViewModel.earthQuakeParaSetModel2.StationID = stationNum; + MainViewModel.earthQuakeParaSetModel2.StationName = stationName; + MainViewModel.earthQuakeParaSetModel2.StationShortName = stationNameAbb; + MainViewModel.earthQuakeParaSetModel2.EarthQuakeCount = seisNum; + MainViewModel.earthQuakeParaSetModel2.ChannelsNo = passNum; + MainViewModel.earthQuakeParaSetModel2.WD = latitude; + MainViewModel.earthQuakeParaSetModel2.JD = longitude; + MainViewModel.earthQuakeParaSetModel2.GaoCheng = elevation; + MainViewModel.earthQuakeParaSetModel2.StartTime = enablingDate; + MainViewModel.earthQuakeParaSetModel2.Station_Id = tetworkLogo; + MainViewModel.earthQuakeParaSetModel2.Software_Version = softVersion; + } } else if (Tools.CompareByte(cmdRecv, new byte[] { 0xC0, 0x50 })) //启动地震计调零 { @@ -209,25 +246,141 @@ namespace JiangsuEarthquake.Models } else if (Tools.CompareByte(cmdRecv, new byte[] { 0xC0, 0x51 })) //停止地震计调零 { + if (dataRecv.Count != 2) + return; + int seisNum = BitConverter.ToInt16(new byte[] { dataRecv[1], dataRecv[0] }, 0); } else if (Tools.CompareByte(cmdRecv, new byte[] { 0xC0, 0x66 })) //运行状态信息 { if (dataRecv.Count != 56) return; + //外部供电电压 int supplyVoltage = BitConverter.ToInt16(new byte[] { dataRecv[1], dataRecv[0] }, 0); + + //后备电池电压 + int batteryVoltage = BitConverter.ToInt16(new byte[] { dataRecv[3], dataRecv[2] }, 0); + + //压力 + int pressure = BitConverter.ToInt16(new byte[] { dataRecv[5], dataRecv[4] }, 0); + + //温度 + int temperature = BitConverter.ToInt16(new byte[] { dataRecv[7], dataRecv[6] }, 0); + + //地震计倾斜角度 + int tiltAngleSeis = BitConverter.ToInt16(new byte[] { dataRecv[9], dataRecv[8] }, 0); + + //OBS 倾斜角度 + int tiltAngleOBS = BitConverter.ToInt16(new byte[] { dataRecv[11], dataRecv[10] }, 0); + + //钟差 + int clockDeviation = BitConverter.ToInt16(new byte[] { dataRecv[13], dataRecv[12] }, 0); + + //频差 + int freDifference = BitConverter.ToInt16(new byte[] { dataRecv[15], dataRecv[14] }, 0); + + //CF 卡总空间 + int totalSpaceCF = BitConverter.ToInt16(new byte[] { dataRecv[19], dataRecv[18], dataRecv[17], dataRecv[16] }, 0); + + //CF 卡可用空间 + int canUseSpaceCF = BitConverter.ToInt16(new byte[] { dataRecv[23], dataRecv[22], dataRecv[21], dataRecv[20] }, 0); + + //SD1 卡总空间 + int totalSpaceSD1 = BitConverter.ToInt16(new byte[] { dataRecv[27], dataRecv[26], dataRecv[25], dataRecv[24] }, 0); + + //SD1 卡可用空间 + int canUseSpaceSD1 = BitConverter.ToInt16(new byte[] { dataRecv[31], dataRecv[30], dataRecv[29], dataRecv[28] }, 0); + + //SD2 卡总空间 + int totalSpaceSD2 = BitConverter.ToInt16(new byte[] { dataRecv[35], dataRecv[34], dataRecv[33], dataRecv[32] }, 0); + + //SD2 卡可用空间 + int canUseSpaceSD2 = BitConverter.ToInt16(new byte[] { dataRecv[39], dataRecv[38], dataRecv[37], dataRecv[36] }, 0); + + //地震计 U 零点 + int zeroPointU = BitConverter.ToInt16(new byte[] { dataRecv[43], dataRecv[42], dataRecv[41], dataRecv[40] }, 0); + + //地震计 V 零点 + int zeroPointV = BitConverter.ToInt16(new byte[] { dataRecv[47], dataRecv[46], dataRecv[45], dataRecv[44] }, 0); + + //地震计 W 零点 + int zeroPointW = BitConverter.ToInt16(new byte[] { dataRecv[51], dataRecv[50], dataRecv[49], dataRecv[48] }, 0); + + //寻北角度 + int northSeekingAngle = BitConverter.ToInt16(new byte[] { dataRecv[55], dataRecv[54], dataRecv[53], dataRecv[52] }, 0); + + //数据存储 + sql = $"insert into earthquakestate(StationID,RecordTime,Out_Vol,Backup_Vol,Pre,Tem," + + $"Sei_Tilt_Angle,OBS_Tilt_Angle,Species_Dif,Frequency_Dif,CF_Total_Cap," + + $"CF_Usable_Cap,SD_Total_Cap1,SD_Usable_Cap1,SD_Total_Cap2,SD_Usable_Cap2," + + $"Sei_U_Point,Sei_V_Point,Sei_W_Point,North_Angle) values('{id}','{DateTime.Now}','{supplyVoltage}','{batteryVoltage}','{pressure}'," + + $"'{temperature}','{tiltAngleSeis}','{tiltAngleOBS}','{clockDeviation}'," + + $"'{freDifference}','{totalSpaceCF}','{canUseSpaceCF}','{totalSpaceSD1}'," + + $"'{canUseSpaceSD1}','{totalSpaceSD2}','{canUseSpaceSD2}','{zeroPointU}'," + + $"'{zeroPointV}','{zeroPointW}','{northSeekingAngle}');"; + DBHelper.ExecuteNonQuery(sql, 1); + + //通知到前端 + if (id == 1) + { + MainViewModel.earthquakeSensorModel1.Out_Vol = supplyVoltage; + MainViewModel.earthquakeSensorModel1.Backup_Vol = batteryVoltage; + MainViewModel.earthquakeSensorModel1.Pre = pressure; + MainViewModel.earthquakeSensorModel1.Tem = temperature; + MainViewModel.earthquakeSensorModel1.Sei_Tilt_Angle = tiltAngleSeis; + MainViewModel.earthquakeSensorModel1.OBS_Tilt_Angle = tiltAngleOBS; + MainViewModel.earthquakeSensorModel1.Species_Dif = clockDeviation; + MainViewModel.earthquakeSensorModel1.Frequency_Dif = freDifference; + MainViewModel.earthquakeSensorModel1.CF_Total_Cap = totalSpaceCF; + MainViewModel.earthquakeSensorModel1.CF_Usable_Cap = canUseSpaceCF; + MainViewModel.earthquakeSensorModel1.SD_Total_Cap1 = totalSpaceSD1; + MainViewModel.earthquakeSensorModel1.SD_Usable_Cap1 = canUseSpaceSD1; + MainViewModel.earthquakeSensorModel1.SD_Total_Cap2 = totalSpaceSD2; + MainViewModel.earthquakeSensorModel1.SD_Usable_Cap2 = canUseSpaceSD2; + MainViewModel.earthquakeSensorModel1.Sei_U_Point = zeroPointU; + MainViewModel.earthquakeSensorModel1.Sei_V_Point = zeroPointV; + MainViewModel.earthquakeSensorModel1.Sei_W_Point = zeroPointW; + MainViewModel.earthquakeSensorModel1.North_Angle = northSeekingAngle; + } + else + { + MainViewModel.earthquakeSensorModel2.Out_Vol = supplyVoltage; + MainViewModel.earthquakeSensorModel2.Backup_Vol = batteryVoltage; + MainViewModel.earthquakeSensorModel2.Pre = pressure; + MainViewModel.earthquakeSensorModel2.Tem = temperature; + MainViewModel.earthquakeSensorModel2.Sei_Tilt_Angle = tiltAngleSeis; + MainViewModel.earthquakeSensorModel2.OBS_Tilt_Angle = tiltAngleOBS; + MainViewModel.earthquakeSensorModel2.Species_Dif = clockDeviation; + MainViewModel.earthquakeSensorModel2.Frequency_Dif = freDifference; + MainViewModel.earthquakeSensorModel2.CF_Total_Cap = totalSpaceCF; + MainViewModel.earthquakeSensorModel2.CF_Usable_Cap = canUseSpaceCF; + MainViewModel.earthquakeSensorModel2.SD_Total_Cap1 = totalSpaceSD1; + MainViewModel.earthquakeSensorModel2.SD_Usable_Cap1 = canUseSpaceSD1; + MainViewModel.earthquakeSensorModel2.SD_Total_Cap2 = totalSpaceSD2; + MainViewModel.earthquakeSensorModel2.SD_Usable_Cap2 = canUseSpaceSD2; + MainViewModel.earthquakeSensorModel2.Sei_U_Point = zeroPointU; + MainViewModel.earthquakeSensorModel2.Sei_V_Point = zeroPointV; + MainViewModel.earthquakeSensorModel2.Sei_W_Point = zeroPointW; + MainViewModel.earthquakeSensorModel2.North_Angle = northSeekingAngle; + } } else if (Tools.CompareByte(cmdRecv, new byte[] { 0xC0, 0x90 })) //启动地震计调平 { + if (dataRecv.Count != 2) + return; + int seisNum = BitConverter.ToInt16(new byte[] { dataRecv[1], dataRecv[0] }, 0); } else if (Tools.CompareByte(cmdRecv, new byte[] { 0xC0, 0x91 })) //停止地震计调平 { + if (dataRecv.Count != 2) + return; + int seisNum = BitConverter.ToInt16(new byte[] { dataRecv[1], dataRecv[0] }, 0); } } - + } } } diff --git a/JiangsuEarthquake/JiangsuEarthquake/Views/SystemControlView.xaml b/JiangsuEarthquake/JiangsuEarthquake/Views/SystemControlView.xaml index ee47e8d..df8104d 100644 --- a/JiangsuEarthquake/JiangsuEarthquake/Views/SystemControlView.xaml +++ b/JiangsuEarthquake/JiangsuEarthquake/Views/SystemControlView.xaml @@ -863,10 +863,11 @@ + - + @@ -879,8 +880,8 @@ - - + + + + + diff --git a/JiangsuEarthquake/JiangsuEarthquake/obj/Debug/net6.0-windows/Views/SystemControlView.g.i.cs b/JiangsuEarthquake/JiangsuEarthquake/obj/Debug/net6.0-windows/Views/SystemControlView.g.i.cs index 4f462f9..6b0850e 100644 --- a/JiangsuEarthquake/JiangsuEarthquake/obj/Debug/net6.0-windows/Views/SystemControlView.g.i.cs +++ b/JiangsuEarthquake/JiangsuEarthquake/obj/Debug/net6.0-windows/Views/SystemControlView.g.i.cs @@ -1,4 +1,5 @@ -#pragma checksum "..\..\..\..\Views\SystemControlView.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "E47E772CE325C0A24E10B211ABE76B62B1E9A348" +// Updated by XamlIntelliSenseFileGenerator 2024/4/29 15:59:54 +#pragma checksum "..\..\..\..\Views\SystemControlView.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "E47E772CE325C0A24E10B211ABE76B62B1E9A348" //------------------------------------------------------------------------------ // // 此代码由工具生成。 @@ -46,630 +47,636 @@ using System.Windows.Shapes; using System.Windows.Shell; -namespace JiangsuEarthquake.Views { - - +namespace JiangsuEarthquake.Views +{ + + /// /// SystemControlView /// - public partial class SystemControlView : System.Windows.Controls.UserControl, System.Windows.Markup.IComponentConnector { - - - #line 12 "..\..\..\..\Views\SystemControlView.xaml" - [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] - internal JiangsuEarthquake.Views.SystemControlView SystemControlPage; - - #line default - #line hidden - - - #line 174 "..\..\..\..\Views\SystemControlView.xaml" + public partial class SystemControlView : System.Windows.Controls.UserControl, System.Windows.Markup.IComponentConnector + { + +#line default +#line hidden + + +#line 174 "..\..\..\..\Views\SystemControlView.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBox MUIP1; - - #line default - #line hidden - - - #line 192 "..\..\..\..\Views\SystemControlView.xaml" + +#line default +#line hidden + + +#line 192 "..\..\..\..\Views\SystemControlView.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBox Port1; - - #line default - #line hidden - - - #line 249 "..\..\..\..\Views\SystemControlView.xaml" + +#line default +#line hidden + + +#line 249 "..\..\..\..\Views\SystemControlView.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBox MUIP2; - - #line default - #line hidden - - - #line 267 "..\..\..\..\Views\SystemControlView.xaml" + +#line default +#line hidden + + +#line 267 "..\..\..\..\Views\SystemControlView.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBox Port2; - - #line default - #line hidden - - - #line 324 "..\..\..\..\Views\SystemControlView.xaml" + +#line default +#line hidden + + +#line 324 "..\..\..\..\Views\SystemControlView.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBox DZIP; - - #line default - #line hidden - - - #line 342 "..\..\..\..\Views\SystemControlView.xaml" + +#line default +#line hidden + + +#line 342 "..\..\..\..\Views\SystemControlView.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBox DZPort; - - #line default - #line hidden - - - #line 399 "..\..\..\..\Views\SystemControlView.xaml" + +#line default +#line hidden + + +#line 399 "..\..\..\..\Views\SystemControlView.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBox DZIP2; - - #line default - #line hidden - - - #line 417 "..\..\..\..\Views\SystemControlView.xaml" + +#line default +#line hidden + + +#line 417 "..\..\..\..\Views\SystemControlView.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBox DZPort2; - - #line default - #line hidden - - - #line 484 "..\..\..\..\Views\SystemControlView.xaml" + +#line default +#line hidden + + +#line 484 "..\..\..\..\Views\SystemControlView.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBox SYZIP1; - - #line default - #line hidden - - - #line 510 "..\..\..\..\Views\SystemControlView.xaml" + +#line default +#line hidden + + +#line 510 "..\..\..\..\Views\SystemControlView.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBox SYZPort1; - - #line default - #line hidden - - - #line 576 "..\..\..\..\Views\SystemControlView.xaml" + +#line default +#line hidden + + +#line 576 "..\..\..\..\Views\SystemControlView.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBox SYZIP2; - - #line default - #line hidden - - - #line 602 "..\..\..\..\Views\SystemControlView.xaml" + +#line default +#line hidden + + +#line 602 "..\..\..\..\Views\SystemControlView.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBox SYZPort2; - - #line default - #line hidden - - - #line 1069 "..\..\..\..\Views\SystemControlView.xaml" + +#line default +#line hidden + + +#line 1069 "..\..\..\..\Views\SystemControlView.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBox StationNo; - - #line default - #line hidden - - - #line 1094 "..\..\..\..\Views\SystemControlView.xaml" + +#line default +#line hidden + + +#line 1094 "..\..\..\..\Views\SystemControlView.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBox StationName; - - #line default - #line hidden - - - #line 1109 "..\..\..\..\Views\SystemControlView.xaml" + +#line default +#line hidden + + +#line 1109 "..\..\..\..\Views\SystemControlView.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBox StationAbbreviation; - - #line default - #line hidden - - - #line 1133 "..\..\..\..\Views\SystemControlView.xaml" + +#line default +#line hidden + + +#line 1133 "..\..\..\..\Views\SystemControlView.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBox TotalSeismometers; - - #line default - #line hidden - - - #line 1148 "..\..\..\..\Views\SystemControlView.xaml" + +#line default +#line hidden + + +#line 1148 "..\..\..\..\Views\SystemControlView.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBox TotalNumberOfChannels; - - #line default - #line hidden - - - #line 1163 "..\..\..\..\Views\SystemControlView.xaml" + +#line default +#line hidden + + +#line 1163 "..\..\..\..\Views\SystemControlView.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBox Latitude; - - #line default - #line hidden - - - #line 1187 "..\..\..\..\Views\SystemControlView.xaml" + +#line default +#line hidden + + +#line 1187 "..\..\..\..\Views\SystemControlView.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBox Longitude; - - #line default - #line hidden - - - #line 1202 "..\..\..\..\Views\SystemControlView.xaml" + +#line default +#line hidden + + +#line 1202 "..\..\..\..\Views\SystemControlView.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBox Altitude; - - #line default - #line hidden - - - #line 1217 "..\..\..\..\Views\SystemControlView.xaml" + +#line default +#line hidden + + +#line 1217 "..\..\..\..\Views\SystemControlView.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBox StartDate; - - #line default - #line hidden - - - #line 1241 "..\..\..\..\Views\SystemControlView.xaml" + +#line default +#line hidden + + +#line 1241 "..\..\..\..\Views\SystemControlView.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBox NetworkMarking; - - #line default - #line hidden - - - #line 1256 "..\..\..\..\Views\SystemControlView.xaml" + +#line default +#line hidden + + +#line 1256 "..\..\..\..\Views\SystemControlView.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBox SoftwareVersion; - - #line default - #line hidden - - - #line 1274 "..\..\..\..\Views\SystemControlView.xaml" + +#line default +#line hidden + + +#line 1274 "..\..\..\..\Views\SystemControlView.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.Button EarthQuakeSetBTN; - - #line default - #line hidden - - - #line 1316 "..\..\..\..\Views\SystemControlView.xaml" + +#line default +#line hidden + + +#line 1316 "..\..\..\..\Views\SystemControlView.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.Button EarthQuakeParaReadBtn; - - #line default - #line hidden - - - #line 1381 "..\..\..\..\Views\SystemControlView.xaml" + +#line default +#line hidden + + +#line 1381 "..\..\..\..\Views\SystemControlView.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBlock Out_Vol; - - #line default - #line hidden - - - #line 1395 "..\..\..\..\Views\SystemControlView.xaml" + +#line default +#line hidden + + +#line 1395 "..\..\..\..\Views\SystemControlView.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBlock Backup_Vol; - - #line default - #line hidden - - - #line 1409 "..\..\..\..\Views\SystemControlView.xaml" + +#line default +#line hidden + + +#line 1409 "..\..\..\..\Views\SystemControlView.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBlock Pre; - - #line default - #line hidden - - - #line 1423 "..\..\..\..\Views\SystemControlView.xaml" + +#line default +#line hidden + + +#line 1423 "..\..\..\..\Views\SystemControlView.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBlock Tem; - - #line default - #line hidden - - - #line 1447 "..\..\..\..\Views\SystemControlView.xaml" + +#line default +#line hidden + + +#line 1447 "..\..\..\..\Views\SystemControlView.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBlock Sei_Tilt_Angle; - - #line default - #line hidden - - - #line 1461 "..\..\..\..\Views\SystemControlView.xaml" + +#line default +#line hidden + + +#line 1461 "..\..\..\..\Views\SystemControlView.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBlock OBS_Tilt_Angle; - - #line default - #line hidden - - - #line 1475 "..\..\..\..\Views\SystemControlView.xaml" + +#line default +#line hidden + + +#line 1475 "..\..\..\..\Views\SystemControlView.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBlock Species_Dif; - - #line default - #line hidden - - - #line 1489 "..\..\..\..\Views\SystemControlView.xaml" + +#line default +#line hidden + + +#line 1489 "..\..\..\..\Views\SystemControlView.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBlock Frequency_Dif; - - #line default - #line hidden - - - #line 1513 "..\..\..\..\Views\SystemControlView.xaml" + +#line default +#line hidden + + +#line 1513 "..\..\..\..\Views\SystemControlView.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBlock CF_Total_Cap; - - #line default - #line hidden - - - #line 1527 "..\..\..\..\Views\SystemControlView.xaml" + +#line default +#line hidden + + +#line 1527 "..\..\..\..\Views\SystemControlView.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBlock CF_Usable_Cap; - - #line default - #line hidden - - - #line 1541 "..\..\..\..\Views\SystemControlView.xaml" + +#line default +#line hidden + + +#line 1541 "..\..\..\..\Views\SystemControlView.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBlock SD_Total_Cap1; - - #line default - #line hidden - - - #line 1555 "..\..\..\..\Views\SystemControlView.xaml" + +#line default +#line hidden + + +#line 1555 "..\..\..\..\Views\SystemControlView.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBlock SD_Usable_Cap1; - - #line default - #line hidden - - - #line 1579 "..\..\..\..\Views\SystemControlView.xaml" + +#line default +#line hidden + + +#line 1579 "..\..\..\..\Views\SystemControlView.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBlock SD_Total_Cap2; - - #line default - #line hidden - - - #line 1593 "..\..\..\..\Views\SystemControlView.xaml" + +#line default +#line hidden + + +#line 1593 "..\..\..\..\Views\SystemControlView.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBlock SD_Usable_Cap2; - - #line default - #line hidden - - - #line 1607 "..\..\..\..\Views\SystemControlView.xaml" + +#line default +#line hidden + + +#line 1607 "..\..\..\..\Views\SystemControlView.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBlock Sei_U_Point; - - #line default - #line hidden - - - #line 1621 "..\..\..\..\Views\SystemControlView.xaml" + +#line default +#line hidden + + +#line 1621 "..\..\..\..\Views\SystemControlView.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBlock Sei_V_Point; - - #line default - #line hidden - - - #line 1645 "..\..\..\..\Views\SystemControlView.xaml" + +#line default +#line hidden + + +#line 1645 "..\..\..\..\Views\SystemControlView.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBlock Sei_W_Point; - - #line default - #line hidden - - - #line 1659 "..\..\..\..\Views\SystemControlView.xaml" + +#line default +#line hidden + + +#line 1659 "..\..\..\..\Views\SystemControlView.xaml" [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")] internal System.Windows.Controls.TextBlock North_Angle; - - #line default - #line hidden - + +#line default +#line hidden + private bool _contentLoaded; - + /// /// InitializeComponent /// [System.Diagnostics.DebuggerNonUserCodeAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "8.0.2.0")] - public void InitializeComponent() { - if (_contentLoaded) { + public void InitializeComponent() + { + if (_contentLoaded) + { return; } _contentLoaded = true; System.Uri resourceLocater = new System.Uri("/JiangsuEarthquake;V1.0.0.0;component/views/systemcontrolview.xaml", System.UriKind.Relative); - - #line 1 "..\..\..\..\Views\SystemControlView.xaml" + +#line 1 "..\..\..\..\Views\SystemControlView.xaml" System.Windows.Application.LoadComponent(this, resourceLocater); - - #line default - #line hidden + +#line default +#line hidden } - + [System.Diagnostics.DebuggerNonUserCodeAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "8.0.2.0")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal System.Delegate _CreateDelegate(System.Type delegateType, string handler) { + internal System.Delegate _CreateDelegate(System.Type delegateType, string handler) + { return System.Delegate.CreateDelegate(delegateType, this, handler); } - + [System.Diagnostics.DebuggerNonUserCodeAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "8.0.2.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Design", "CA1033:InterfaceMethodsShouldBeCallableByChildTypes")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Maintainability", "CA1502:AvoidExcessiveComplexity")] [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1800:DoNotCastUnnecessarily")] - void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { + void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) + { switch (connectionId) { - case 1: - this.SystemControlPage = ((JiangsuEarthquake.Views.SystemControlView)(target)); - return; - case 2: - this.MUIP1 = ((System.Windows.Controls.TextBox)(target)); - return; - case 3: - this.Port1 = ((System.Windows.Controls.TextBox)(target)); - return; - case 4: - this.MUIP2 = ((System.Windows.Controls.TextBox)(target)); - return; - case 5: - this.Port2 = ((System.Windows.Controls.TextBox)(target)); - return; - case 6: - this.DZIP = ((System.Windows.Controls.TextBox)(target)); - return; - case 7: - this.DZPort = ((System.Windows.Controls.TextBox)(target)); - return; - case 8: - this.DZIP2 = ((System.Windows.Controls.TextBox)(target)); - return; - case 9: - this.DZPort2 = ((System.Windows.Controls.TextBox)(target)); - return; - case 10: - this.SYZIP1 = ((System.Windows.Controls.TextBox)(target)); - return; - case 11: - this.SYZPort1 = ((System.Windows.Controls.TextBox)(target)); - return; - case 12: - this.SYZIP2 = ((System.Windows.Controls.TextBox)(target)); - return; - case 13: - this.SYZPort2 = ((System.Windows.Controls.TextBox)(target)); - return; - case 14: - - #line 674 "..\..\..\..\Views\SystemControlView.xaml" - ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ECCPowerOpenButton_Click); - - #line default - #line hidden - return; - case 15: - - #line 700 "..\..\..\..\Views\SystemControlView.xaml" - ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ECCPowerCloseButton_Click); - - #line default - #line hidden - return; - case 16: - - #line 741 "..\..\..\..\Views\SystemControlView.xaml" - ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.MainSeisPowerOpenButton_Click); - - #line default - #line hidden - return; - case 17: - - #line 767 "..\..\..\..\Views\SystemControlView.xaml" - ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.MainSeisPowerCloseButton_Click); - - #line default - #line hidden - return; - case 18: - - #line 808 "..\..\..\..\Views\SystemControlView.xaml" - ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BackupSeisPowerOpenButton_Click); - - #line default - #line hidden - return; - case 19: - - #line 834 "..\..\..\..\Views\SystemControlView.xaml" - ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BackupSeisPowerCloseButton_Click); - - #line default - #line hidden - return; - case 20: - - #line 883 "..\..\..\..\Views\SystemControlView.xaml" - ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SeisZeroSetStartButton_Click); - - #line default - #line hidden - return; - case 21: - - #line 909 "..\..\..\..\Views\SystemControlView.xaml" - ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SeisZeroSetStopButton_Click); - - #line default - #line hidden - return; - case 22: - - #line 950 "..\..\..\..\Views\SystemControlView.xaml" - ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SeisLevelSetStartButton_Click); - - #line default - #line hidden - return; - case 23: - - #line 976 "..\..\..\..\Views\SystemControlView.xaml" - ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SeisZeroSetStopButton_Click); - - #line default - #line hidden - return; - case 24: - this.StationNo = ((System.Windows.Controls.TextBox)(target)); - return; - case 25: - this.StationName = ((System.Windows.Controls.TextBox)(target)); - return; - case 26: - this.StationAbbreviation = ((System.Windows.Controls.TextBox)(target)); - return; - case 27: - this.TotalSeismometers = ((System.Windows.Controls.TextBox)(target)); - return; - case 28: - this.TotalNumberOfChannels = ((System.Windows.Controls.TextBox)(target)); - return; - case 29: - this.Latitude = ((System.Windows.Controls.TextBox)(target)); - return; - case 30: - this.Longitude = ((System.Windows.Controls.TextBox)(target)); - return; - case 31: - this.Altitude = ((System.Windows.Controls.TextBox)(target)); - return; - case 32: - this.StartDate = ((System.Windows.Controls.TextBox)(target)); - return; - case 33: - this.NetworkMarking = ((System.Windows.Controls.TextBox)(target)); - return; - case 34: - this.SoftwareVersion = ((System.Windows.Controls.TextBox)(target)); - return; - case 35: - this.EarthQuakeSetBTN = ((System.Windows.Controls.Button)(target)); - - #line 1276 "..\..\..\..\Views\SystemControlView.xaml" - this.EarthQuakeSetBTN.Click += new System.Windows.RoutedEventHandler(this.Switch_ClickAsync); - - #line default - #line hidden - return; - case 36: - this.EarthQuakeParaReadBtn = ((System.Windows.Controls.Button)(target)); - - #line 1318 "..\..\..\..\Views\SystemControlView.xaml" - this.EarthQuakeParaReadBtn.Click += new System.Windows.RoutedEventHandler(this.Switch_ClickAsync); - - #line default - #line hidden - return; - case 37: - this.Out_Vol = ((System.Windows.Controls.TextBlock)(target)); - return; - case 38: - this.Backup_Vol = ((System.Windows.Controls.TextBlock)(target)); - return; - case 39: - this.Pre = ((System.Windows.Controls.TextBlock)(target)); - return; - case 40: - this.Tem = ((System.Windows.Controls.TextBlock)(target)); - return; - case 41: - this.Sei_Tilt_Angle = ((System.Windows.Controls.TextBlock)(target)); - return; - case 42: - this.OBS_Tilt_Angle = ((System.Windows.Controls.TextBlock)(target)); - return; - case 43: - this.Species_Dif = ((System.Windows.Controls.TextBlock)(target)); - return; - case 44: - this.Frequency_Dif = ((System.Windows.Controls.TextBlock)(target)); - return; - case 45: - this.CF_Total_Cap = ((System.Windows.Controls.TextBlock)(target)); - return; - case 46: - this.CF_Usable_Cap = ((System.Windows.Controls.TextBlock)(target)); - return; - case 47: - this.SD_Total_Cap1 = ((System.Windows.Controls.TextBlock)(target)); - return; - case 48: - this.SD_Usable_Cap1 = ((System.Windows.Controls.TextBlock)(target)); - return; - case 49: - this.SD_Total_Cap2 = ((System.Windows.Controls.TextBlock)(target)); - return; - case 50: - this.SD_Usable_Cap2 = ((System.Windows.Controls.TextBlock)(target)); - return; - case 51: - this.Sei_U_Point = ((System.Windows.Controls.TextBlock)(target)); - return; - case 52: - this.Sei_V_Point = ((System.Windows.Controls.TextBlock)(target)); - return; - case 53: - this.Sei_W_Point = ((System.Windows.Controls.TextBlock)(target)); - return; - case 54: - this.North_Angle = ((System.Windows.Controls.TextBlock)(target)); - return; + case 1: + this.SystemControlPage = ((JiangsuEarthquake.Views.SystemControlView)(target)); + return; + case 2: + this.MUIP1 = ((System.Windows.Controls.TextBox)(target)); + return; + case 3: + this.Port1 = ((System.Windows.Controls.TextBox)(target)); + return; + case 4: + this.MUIP2 = ((System.Windows.Controls.TextBox)(target)); + return; + case 5: + this.Port2 = ((System.Windows.Controls.TextBox)(target)); + return; + case 6: + this.DZIP = ((System.Windows.Controls.TextBox)(target)); + return; + case 7: + this.DZPort = ((System.Windows.Controls.TextBox)(target)); + return; + case 8: + this.DZIP2 = ((System.Windows.Controls.TextBox)(target)); + return; + case 9: + this.DZPort2 = ((System.Windows.Controls.TextBox)(target)); + return; + case 10: + this.SYZIP1 = ((System.Windows.Controls.TextBox)(target)); + return; + case 11: + this.SYZPort1 = ((System.Windows.Controls.TextBox)(target)); + return; + case 12: + this.SYZIP2 = ((System.Windows.Controls.TextBox)(target)); + return; + case 13: + this.SYZPort2 = ((System.Windows.Controls.TextBox)(target)); + return; + case 14: + +#line 674 "..\..\..\..\Views\SystemControlView.xaml" + ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ECCPowerOpenButton_Click); + +#line default +#line hidden + return; + case 15: + +#line 700 "..\..\..\..\Views\SystemControlView.xaml" + ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.ECCPowerCloseButton_Click); + +#line default +#line hidden + return; + case 16: + +#line 741 "..\..\..\..\Views\SystemControlView.xaml" + ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.MainSeisPowerOpenButton_Click); + +#line default +#line hidden + return; + case 17: + +#line 767 "..\..\..\..\Views\SystemControlView.xaml" + ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.MainSeisPowerCloseButton_Click); + +#line default +#line hidden + return; + case 18: + +#line 808 "..\..\..\..\Views\SystemControlView.xaml" + ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BackupSeisPowerOpenButton_Click); + +#line default +#line hidden + return; + case 19: + +#line 834 "..\..\..\..\Views\SystemControlView.xaml" + ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.BackupSeisPowerCloseButton_Click); + +#line default +#line hidden + return; + case 20: + +#line 883 "..\..\..\..\Views\SystemControlView.xaml" + ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SeisZeroSetStartButton_Click); + +#line default +#line hidden + return; + case 21: + +#line 909 "..\..\..\..\Views\SystemControlView.xaml" + ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SeisZeroSetStopButton_Click); + +#line default +#line hidden + return; + case 22: + +#line 950 "..\..\..\..\Views\SystemControlView.xaml" + ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SeisLevelSetStartButton_Click); + +#line default +#line hidden + return; + case 23: + +#line 976 "..\..\..\..\Views\SystemControlView.xaml" + ((System.Windows.Controls.Button)(target)).Click += new System.Windows.RoutedEventHandler(this.SeisZeroSetStopButton_Click); + +#line default +#line hidden + return; + case 24: + this.StationNo = ((System.Windows.Controls.TextBox)(target)); + return; + case 25: + this.StationName = ((System.Windows.Controls.TextBox)(target)); + return; + case 26: + this.StationAbbreviation = ((System.Windows.Controls.TextBox)(target)); + return; + case 27: + this.TotalSeismometers = ((System.Windows.Controls.TextBox)(target)); + return; + case 28: + this.TotalNumberOfChannels = ((System.Windows.Controls.TextBox)(target)); + return; + case 29: + this.Latitude = ((System.Windows.Controls.TextBox)(target)); + return; + case 30: + this.Longitude = ((System.Windows.Controls.TextBox)(target)); + return; + case 31: + this.Altitude = ((System.Windows.Controls.TextBox)(target)); + return; + case 32: + this.StartDate = ((System.Windows.Controls.TextBox)(target)); + return; + case 33: + this.NetworkMarking = ((System.Windows.Controls.TextBox)(target)); + return; + case 34: + this.SoftwareVersion = ((System.Windows.Controls.TextBox)(target)); + return; + case 35: + this.EarthQuakeSetBTN = ((System.Windows.Controls.Button)(target)); + +#line 1276 "..\..\..\..\Views\SystemControlView.xaml" + this.EarthQuakeSetBTN.Click += new System.Windows.RoutedEventHandler(this.Switch_ClickAsync); + +#line default +#line hidden + return; + case 36: + this.EarthQuakeParaReadBtn = ((System.Windows.Controls.Button)(target)); + +#line 1318 "..\..\..\..\Views\SystemControlView.xaml" + this.EarthQuakeParaReadBtn.Click += new System.Windows.RoutedEventHandler(this.Switch_ClickAsync); + +#line default +#line hidden + return; + case 37: + this.Out_Vol = ((System.Windows.Controls.TextBlock)(target)); + return; + case 38: + this.Backup_Vol = ((System.Windows.Controls.TextBlock)(target)); + return; + case 39: + this.Pre = ((System.Windows.Controls.TextBlock)(target)); + return; + case 40: + this.Tem = ((System.Windows.Controls.TextBlock)(target)); + return; + case 41: + this.Sei_Tilt_Angle = ((System.Windows.Controls.TextBlock)(target)); + return; + case 42: + this.OBS_Tilt_Angle = ((System.Windows.Controls.TextBlock)(target)); + return; + case 43: + this.Species_Dif = ((System.Windows.Controls.TextBlock)(target)); + return; + case 44: + this.Frequency_Dif = ((System.Windows.Controls.TextBlock)(target)); + return; + case 45: + this.CF_Total_Cap = ((System.Windows.Controls.TextBlock)(target)); + return; + case 46: + this.CF_Usable_Cap = ((System.Windows.Controls.TextBlock)(target)); + return; + case 47: + this.SD_Total_Cap1 = ((System.Windows.Controls.TextBlock)(target)); + return; + case 48: + this.SD_Usable_Cap1 = ((System.Windows.Controls.TextBlock)(target)); + return; + case 49: + this.SD_Total_Cap2 = ((System.Windows.Controls.TextBlock)(target)); + return; + case 50: + this.SD_Usable_Cap2 = ((System.Windows.Controls.TextBlock)(target)); + return; + case 51: + this.Sei_U_Point = ((System.Windows.Controls.TextBlock)(target)); + return; + case 52: + this.Sei_V_Point = ((System.Windows.Controls.TextBlock)(target)); + return; + case 53: + this.Sei_W_Point = ((System.Windows.Controls.TextBlock)(target)); + return; + case 54: + this.North_Angle = ((System.Windows.Controls.TextBlock)(target)); + return; } this._contentLoaded = true; } + + internal System.Windows.Controls.UserControl SystemControlPage; + internal System.Windows.Controls.TextBlock OpenSetMsg; + internal System.Windows.Controls.TextBlock CloseSetMsg; + internal System.Windows.Controls.Button SeisZeroSetStartButton; } }