From 2cf718323aa56a738c7ca31d43689991e097d030 Mon Sep 17 00:00:00 2001
From: gekoukate <1670391937@qq.com>
Date: Wed, 29 Mar 2023 23:23:19 +0800
Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E9=A1=B9=E7=9B=AE=E6=96=87?=
=?UTF-8?q?=E4=BB=B6=E3=80=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
WpfApp1/App.config | 6 +
WpfApp1/App.xaml | 9 +
WpfApp1/App.xaml.cs | 17 +
WpfApp1/MainWindow.xaml | 12 +
WpfApp1/MainWindow.xaml.cs | 28 +
WpfApp1/Properties/AssemblyInfo.cs | 55 ++
WpfApp1/Properties/Resources.Designer.cs | 71 ++
WpfApp1/Properties/Resources.resx | 117 ++++
WpfApp1/Properties/Settings.Designer.cs | 30 +
WpfApp1/Properties/Settings.settings | 7 +
WpfApp1/WpfApp1.csproj | 102 +++
help.txt | 1 +
mseedChart.Core/RegionNames.cs | 10 +
mseedChart.Core/mseedChart.Core.csproj | 8 +
mseedChart.Main/MainModule.cs | 25 +
mseedChart.Main/Models/LineDatas.cs | 52 ++
.../ViewModels/ChartPlotViewModel.cs | 49 ++
mseedChart.Main/ViewModels/ViewAViewModel.cs | 95 +++
mseedChart.Main/Views/ChartPlotView.xaml | 15 +
mseedChart.Main/Views/ChartPlotView.xaml.cs | 207 ++++++
mseedChart.Main/Views/ViewA.xaml | 26 +
mseedChart.Main/Views/ViewA.xaml.cs | 29 +
mseedChart.Main/mseedChart.Main.csproj | 19 +
mseedChart.MainModule/MainModule.cs | 25 +
mseedChart.MainModule/Models/ChannelModel.cs | 32 +
mseedChart.MainModule/Models/CoordBase.cs | 74 ++
mseedChart.MainModule/Models/LineDatas.cs | 52 ++
mseedChart.MainModule/Models/MmEvent.cs | 355 ++++++++++
mseedChart.MainModule/Models/ShareProperty.cs | 19 +
mseedChart.MainModule/Models/StationModel.cs | 46 ++
.../Models/StationWorkModel.cs | 212 ++++++
mseedChart.MainModule/Models/WavesModel.cs | 445 ++++++++++++
.../Properties/AssemblyInfo.cs | 55 ++
.../Properties/Resources.Designer.cs | 71 ++
.../Properties/Resources.resx | 117 ++++
.../Properties/Settings.Designer.cs | 30 +
.../Properties/Settings.settings | 7 +
mseedChart.MainModule/RegionNames.cs | 51 ++
.../ViewModels/ChartPlotViewModel.cs | 652 ++++++++++++++++++
.../Views/ChartPlotView.xaml | 18 +
.../Views/ChartPlotView.xaml.cs | 29 +
mseedChart.MainModule/app.config | 11 +
.../mseedChart.MainModule.csproj | 134 ++++
mseedChart.MainModule/packages.config | 4 +
mseedChart.sln | 49 ++
mseedChart/App.xaml | 9 +
mseedChart/App.xaml.cs | 26 +
mseedChart/ViewModels/MainWindowViewModel.cs | 19 +
mseedChart/Views/MainWindow.xaml | 11 +
mseedChart/Views/MainWindow.xaml.cs | 15 +
mseedChart/mseedChart.csproj | 20 +
.../resources/N3102_staion_20230312.txt | 25 +
52 files changed, 3603 insertions(+)
create mode 100644 WpfApp1/App.config
create mode 100644 WpfApp1/App.xaml
create mode 100644 WpfApp1/App.xaml.cs
create mode 100644 WpfApp1/MainWindow.xaml
create mode 100644 WpfApp1/MainWindow.xaml.cs
create mode 100644 WpfApp1/Properties/AssemblyInfo.cs
create mode 100644 WpfApp1/Properties/Resources.Designer.cs
create mode 100644 WpfApp1/Properties/Resources.resx
create mode 100644 WpfApp1/Properties/Settings.Designer.cs
create mode 100644 WpfApp1/Properties/Settings.settings
create mode 100644 WpfApp1/WpfApp1.csproj
create mode 100644 help.txt
create mode 100644 mseedChart.Core/RegionNames.cs
create mode 100644 mseedChart.Core/mseedChart.Core.csproj
create mode 100644 mseedChart.Main/MainModule.cs
create mode 100644 mseedChart.Main/Models/LineDatas.cs
create mode 100644 mseedChart.Main/ViewModels/ChartPlotViewModel.cs
create mode 100644 mseedChart.Main/ViewModels/ViewAViewModel.cs
create mode 100644 mseedChart.Main/Views/ChartPlotView.xaml
create mode 100644 mseedChart.Main/Views/ChartPlotView.xaml.cs
create mode 100644 mseedChart.Main/Views/ViewA.xaml
create mode 100644 mseedChart.Main/Views/ViewA.xaml.cs
create mode 100644 mseedChart.Main/mseedChart.Main.csproj
create mode 100644 mseedChart.MainModule/MainModule.cs
create mode 100644 mseedChart.MainModule/Models/ChannelModel.cs
create mode 100644 mseedChart.MainModule/Models/CoordBase.cs
create mode 100644 mseedChart.MainModule/Models/LineDatas.cs
create mode 100644 mseedChart.MainModule/Models/MmEvent.cs
create mode 100644 mseedChart.MainModule/Models/ShareProperty.cs
create mode 100644 mseedChart.MainModule/Models/StationModel.cs
create mode 100644 mseedChart.MainModule/Models/StationWorkModel.cs
create mode 100644 mseedChart.MainModule/Models/WavesModel.cs
create mode 100644 mseedChart.MainModule/Properties/AssemblyInfo.cs
create mode 100644 mseedChart.MainModule/Properties/Resources.Designer.cs
create mode 100644 mseedChart.MainModule/Properties/Resources.resx
create mode 100644 mseedChart.MainModule/Properties/Settings.Designer.cs
create mode 100644 mseedChart.MainModule/Properties/Settings.settings
create mode 100644 mseedChart.MainModule/RegionNames.cs
create mode 100644 mseedChart.MainModule/ViewModels/ChartPlotViewModel.cs
create mode 100644 mseedChart.MainModule/Views/ChartPlotView.xaml
create mode 100644 mseedChart.MainModule/Views/ChartPlotView.xaml.cs
create mode 100644 mseedChart.MainModule/app.config
create mode 100644 mseedChart.MainModule/mseedChart.MainModule.csproj
create mode 100644 mseedChart.MainModule/packages.config
create mode 100644 mseedChart.sln
create mode 100644 mseedChart/App.xaml
create mode 100644 mseedChart/App.xaml.cs
create mode 100644 mseedChart/ViewModels/MainWindowViewModel.cs
create mode 100644 mseedChart/Views/MainWindow.xaml
create mode 100644 mseedChart/Views/MainWindow.xaml.cs
create mode 100644 mseedChart/mseedChart.csproj
create mode 100644 mseedChart/resources/N3102_staion_20230312.txt
diff --git a/WpfApp1/App.config b/WpfApp1/App.config
new file mode 100644
index 0000000..016d28f
--- /dev/null
+++ b/WpfApp1/App.config
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/WpfApp1/App.xaml b/WpfApp1/App.xaml
new file mode 100644
index 0000000..2e70522
--- /dev/null
+++ b/WpfApp1/App.xaml
@@ -0,0 +1,9 @@
+
+
+
+
+
diff --git a/WpfApp1/App.xaml.cs b/WpfApp1/App.xaml.cs
new file mode 100644
index 0000000..d58ebfa
--- /dev/null
+++ b/WpfApp1/App.xaml.cs
@@ -0,0 +1,17 @@
+using System;
+using System.Collections.Generic;
+using System.Configuration;
+using System.Data;
+using System.Linq;
+using System.Threading.Tasks;
+using System.Windows;
+
+namespace WpfApp1
+{
+ ///
+ /// App.xaml 的交互逻辑
+ ///
+ public partial class App : Application
+ {
+ }
+}
diff --git a/WpfApp1/MainWindow.xaml b/WpfApp1/MainWindow.xaml
new file mode 100644
index 0000000..1534e78
--- /dev/null
+++ b/WpfApp1/MainWindow.xaml
@@ -0,0 +1,12 @@
+
+
+
+
+
diff --git a/WpfApp1/MainWindow.xaml.cs b/WpfApp1/MainWindow.xaml.cs
new file mode 100644
index 0000000..4a4aa8c
--- /dev/null
+++ b/WpfApp1/MainWindow.xaml.cs
@@ -0,0 +1,28 @@
+using System;
+using System.Collections.Generic;
+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;
+
+namespace WpfApp1
+{
+ ///
+ /// MainWindow.xaml 的交互逻辑
+ ///
+ public partial class MainWindow : Window
+ {
+ public MainWindow()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/WpfApp1/Properties/AssemblyInfo.cs b/WpfApp1/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000..9fa2f3e
--- /dev/null
+++ b/WpfApp1/Properties/AssemblyInfo.cs
@@ -0,0 +1,55 @@
+using System.Reflection;
+using System.Resources;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+using System.Windows;
+
+// 有关程序集的一般信息由以下
+// 控制。更改这些特性值可修改
+// 与程序集关联的信息。
+[assembly: AssemblyTitle("WpfApp1")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("WpfApp1")]
+[assembly: AssemblyCopyright("Copyright © 2023")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// 将 ComVisible 设置为 false 会使此程序集中的类型
+//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
+//请将此类型的 ComVisible 特性设置为 true。
+[assembly: ComVisible(false)]
+
+//若要开始生成可本地化的应用程序,请设置
+//.csproj 文件中的 CultureYouAreCodingWith
+//例如,如果您在源文件中使用的是美国英语,
+//使用的是美国英语,请将 设置为 en-US。 然后取消
+//对以下 NeutralResourceLanguage 特性的注释。 更新
+//以下行中的“en-US”以匹配项目文件中的 UICulture 设置。
+
+//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
+
+
+[assembly: ThemeInfo(
+ ResourceDictionaryLocation.None, //主题特定资源词典所处位置
+ //(未在页面中找到资源时使用,
+ //或应用程序资源字典中找到时使用)
+ ResourceDictionaryLocation.SourceAssembly //常规资源词典所处位置
+ //(未在页面中找到资源时使用,
+ //、应用程序或任何主题专用资源字典中找到时使用)
+)]
+
+
+// 程序集的版本信息由下列四个值组成:
+//
+// 主版本
+// 次版本
+// 生成号
+// 修订号
+//
+//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
+//通过使用 "*",如下所示:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
diff --git a/WpfApp1/Properties/Resources.Designer.cs b/WpfApp1/Properties/Resources.Designer.cs
new file mode 100644
index 0000000..3abd32b
--- /dev/null
+++ b/WpfApp1/Properties/Resources.Designer.cs
@@ -0,0 +1,71 @@
+//------------------------------------------------------------------------------
+//
+// 此代码由工具生成。
+// 运行时版本: 4.0.30319.42000
+//
+// 对此文件的更改可能导致不正确的行为,如果
+// 重新生成代码,则所做更改将丢失。
+//
+//------------------------------------------------------------------------------
+
+namespace WpfApp1.Properties
+{
+
+
+ ///
+ /// 强类型资源类,用于查找本地化字符串等。
+ ///
+ // 此类是由 StronglyTypedResourceBuilder
+ // 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
+ // 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
+ // (以 /str 作为命令选项),或重新生成 VS 项目。
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.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()
+ {
+ }
+
+ ///
+ /// 返回此类使用的缓存 ResourceManager 实例。
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Resources.ResourceManager ResourceManager
+ {
+ get
+ {
+ if ((resourceMan == null))
+ {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WpfApp1.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ ///
+ /// 重写当前线程的 CurrentUICulture 属性,对
+ /// 使用此强类型资源类的所有资源查找执行重写。
+ ///
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture
+ {
+ get
+ {
+ return resourceCulture;
+ }
+ set
+ {
+ resourceCulture = value;
+ }
+ }
+ }
+}
diff --git a/WpfApp1/Properties/Resources.resx b/WpfApp1/Properties/Resources.resx
new file mode 100644
index 0000000..af7dbeb
--- /dev/null
+++ b/WpfApp1/Properties/Resources.resx
@@ -0,0 +1,117 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ text/microsoft-resx
+
+
+ 2.0
+
+
+ System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
+ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089
+
+
\ No newline at end of file
diff --git a/WpfApp1/Properties/Settings.Designer.cs b/WpfApp1/Properties/Settings.Designer.cs
new file mode 100644
index 0000000..6512fd0
--- /dev/null
+++ b/WpfApp1/Properties/Settings.Designer.cs
@@ -0,0 +1,30 @@
+//------------------------------------------------------------------------------
+//
+// 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.
+//
+//------------------------------------------------------------------------------
+
+namespace WpfApp1.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;
+ }
+ }
+ }
+}
diff --git a/WpfApp1/Properties/Settings.settings b/WpfApp1/Properties/Settings.settings
new file mode 100644
index 0000000..033d7a5
--- /dev/null
+++ b/WpfApp1/Properties/Settings.settings
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/WpfApp1/WpfApp1.csproj b/WpfApp1/WpfApp1.csproj
new file mode 100644
index 0000000..94ed4bc
--- /dev/null
+++ b/WpfApp1/WpfApp1.csproj
@@ -0,0 +1,102 @@
+
+
+
+
+ Debug
+ AnyCPU
+ {92B5468F-C7FF-4295-A8D1-BE9B117C2287}
+ WinExe
+ WpfApp1
+ WpfApp1
+ v4.7
+ 512
+ {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}
+ 4
+ true
+ true
+
+
+ AnyCPU
+ true
+ full
+ false
+ bin\Debug\
+ DEBUG;TRACE
+ prompt
+ 4
+
+
+ AnyCPU
+ pdbonly
+ true
+ bin\Release\
+ TRACE
+ prompt
+ 4
+
+
+
+ False
+ C:\Program Files (x86)\Arction\LightningChart .NET SDK v.10\Toolbox\Wpf\Arction.Wpf.Charting.LightningChart.dll
+
+
+
+
+
+
+
+
+
+
+ 4.0
+
+
+
+
+
+
+
+ MSBuild:Compile
+ Designer
+
+
+ MSBuild:Compile
+ Designer
+
+
+ App.xaml
+ Code
+
+
+ MainWindow.xaml
+ Code
+
+
+
+
+ Code
+
+
+ True
+ True
+ Resources.resx
+
+
+ True
+ Settings.settings
+ True
+
+
+ ResXFileCodeGenerator
+ Resources.Designer.cs
+
+
+ SettingsSingleFileGenerator
+ Settings.Designer.cs
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/help.txt b/help.txt
new file mode 100644
index 0000000..bb8f589
--- /dev/null
+++ b/help.txt
@@ -0,0 +1 @@
+FreeformPointLineSeries 可以从前一个点向任意方向绘制线点。
\ No newline at end of file
diff --git a/mseedChart.Core/RegionNames.cs b/mseedChart.Core/RegionNames.cs
new file mode 100644
index 0000000..dd95fd4
--- /dev/null
+++ b/mseedChart.Core/RegionNames.cs
@@ -0,0 +1,10 @@
+using System;
+
+namespace mseedChart.Core
+{
+ public static class RegionNames
+ {
+ public const string ContentRegion = "ContentRegion";
+ }
+
+}
diff --git a/mseedChart.Core/mseedChart.Core.csproj b/mseedChart.Core/mseedChart.Core.csproj
new file mode 100644
index 0000000..8ef8970
--- /dev/null
+++ b/mseedChart.Core/mseedChart.Core.csproj
@@ -0,0 +1,8 @@
+
+
+
+ netstandard2.1
+ enable
+
+
+
diff --git a/mseedChart.Main/MainModule.cs b/mseedChart.Main/MainModule.cs
new file mode 100644
index 0000000..72dde9d
--- /dev/null
+++ b/mseedChart.Main/MainModule.cs
@@ -0,0 +1,25 @@
+using mseedChart.Core;
+using mseedChart.Main.ViewModels;
+using mseedChart.Main.Views;
+using Prism.Ioc;
+using Prism.Modularity;
+using Prism.Regions;
+
+namespace mseedChart.Main
+{
+ public class MainModule : IModule
+ {
+ public void OnInitialized(IContainerProvider containerProvider)
+ {
+ var regionManager = containerProvider.Resolve();
+ regionManager.RegisterViewWithRegion(RegionNames.ContentRegion, typeof(ViewA));
+ }
+
+ public void RegisterTypes(IContainerRegistry containerRegistry)
+ {
+ containerRegistry.Register();
+ containerRegistry.RegisterSingleton();
+
+ }
+ }
+}
\ No newline at end of file
diff --git a/mseedChart.Main/Models/LineDatas.cs b/mseedChart.Main/Models/LineDatas.cs
new file mode 100644
index 0000000..b48f279
--- /dev/null
+++ b/mseedChart.Main/Models/LineDatas.cs
@@ -0,0 +1,52 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace mseedChart.Main.Models
+{
+ public class LineDatas
+ {
+ private string lable;
+
+ public string Lable
+ {
+ get { return lable; }
+ set { lable = value; }
+ }
+
+ private string color;
+
+ public string Color
+ {
+ get { return color; }
+ set { color = value; }
+ }
+
+ private double smoothTension;
+
+ public double SmoothTension
+ {
+ get { return smoothTension; }
+ set { smoothTension = value; }
+ }
+
+ private double[] xData;
+
+ public double[] XData
+ {
+ get { return xData; }
+ set { xData = value; }
+ }
+
+ private double[] yData;
+
+ public double[] YData
+ {
+ get { return yData; }
+ set { yData = value; }
+ }
+ }
+
+}
diff --git a/mseedChart.Main/ViewModels/ChartPlotViewModel.cs b/mseedChart.Main/ViewModels/ChartPlotViewModel.cs
new file mode 100644
index 0000000..4f510a4
--- /dev/null
+++ b/mseedChart.Main/ViewModels/ChartPlotViewModel.cs
@@ -0,0 +1,49 @@
+using mseedChart.Main.Models;
+using Prism.Regions;
+using ScottPlot;
+using System;
+using System.Collections.Concurrent;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Timers;
+using System.Windows.Input;
+using System.Windows.Shapes;
+
+namespace mseedChart.Main.ViewModels
+{
+ public class ChartPlotViewModel
+ {
+ public Action> InializeChartPlotChange;
+ public Action> PlotLineDataChanged;
+ public ChartPlotViewModel()
+ {
+ }
+
+ public void PlotDataDemo()
+ {
+ // 生成 10天数据
+ int pointCount = 10000;
+ double[] days = new double[pointCount];
+ DateTime day1 = new DateTime(1890, 09, 24);
+ for (int i = 0; i < days.Length; i++)
+ days[i] = day1.AddDays(i).ToOADate();
+ List lines = new List();
+ Random random = new Random(10);
+ for (int i = 0; i < 3; i++)
+ {
+ lines.Add(new LineDatas
+ {
+ Lable = "line" + i,
+ SmoothTension = 1.0f,
+ YData = DataGen.RandomWalk(random, pointCount, 100),
+ XData = days
+ }); ;
+ }
+ InializeChartPlotChange?.Invoke(lines);
+ }
+
+ }
+}
diff --git a/mseedChart.Main/ViewModels/ViewAViewModel.cs b/mseedChart.Main/ViewModels/ViewAViewModel.cs
new file mode 100644
index 0000000..dd3fada
--- /dev/null
+++ b/mseedChart.Main/ViewModels/ViewAViewModel.cs
@@ -0,0 +1,95 @@
+using mseedChart.Main.Models;
+using mseedChart.Main.Views;
+using Prism.Commands;
+using Prism.Mvvm;
+using System;
+using System.Collections.Concurrent;
+using System.Collections.Generic;
+using System.Diagnostics;
+using System.IO;
+using System.Linq;
+using System.Reflection;
+using System.Text;
+using System.Threading.Tasks;
+using System.Timers;
+
+namespace mseedChart.Main.ViewModels
+{
+ public class ViewAViewModel : BindableBase
+ {
+ public ViewAViewModel(ChartPlotViewModel chartPlotViewModel)
+ {
+ this._chartPlotViewModel = chartPlotViewModel;
+ Message = "View A from your Prism Module";
+ Timer time = new Timer(1000);
+ time.Elapsed += Time_Elapsed;
+ time.Start();
+
+ }
+ private string _message;
+ private ChartPlotViewModel _chartPlotViewModel;
+ private BlockingCollection> queueDatas = new BlockingCollection>(100);
+
+ public string Message
+ {
+ get { return _message; }
+ set { SetProperty(ref _message, value); }
+ }
+ public DelegateCommand