V1版本
This commit is contained in:
@@ -11,7 +11,7 @@ namespace CapMachine.Wpf.PrismEvent
|
||||
/// <summary>
|
||||
/// Chart图表操作的动作事件
|
||||
/// </summary>
|
||||
public class ChartRtActionEvent : PubSubEvent<ChartActionType>
|
||||
public class ChartRtSeriesActionEvent : PubSubEvent<ChartRtSeriesActionMsg>
|
||||
{
|
||||
|
||||
}
|
||||
26
CapMachine.Wpf/PrismEvent/ChartRtSeriesActionMsg.cs
Normal file
26
CapMachine.Wpf/PrismEvent/ChartRtSeriesActionMsg.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CapMachine.Wpf.PrismEvent
|
||||
{
|
||||
public class ChartRtSeriesActionMsg
|
||||
{
|
||||
/// <summary>
|
||||
/// 机器
|
||||
/// </summary>
|
||||
public string Machine { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// GroupTab信息
|
||||
/// </summary>
|
||||
public int GroupTabIndex { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///动作消息
|
||||
/// </summary>
|
||||
public string ActionMsg { get; set; }
|
||||
}
|
||||
}
|
||||
17
CapMachine.Wpf/PrismEvent/ChartSetEnableEvent.cs
Normal file
17
CapMachine.Wpf/PrismEvent/ChartSetEnableEvent.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using Prism.Events;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CapMachine.Wpf.PrismEvent
|
||||
{
|
||||
/// <summary>
|
||||
/// Chart 设置是否启用的功能
|
||||
/// </summary>
|
||||
public class ChartSetEnableEvent : PubSubEvent<ChartSetEnableMsg>
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
25
CapMachine.Wpf/PrismEvent/ChartSetEnableMsg.cs
Normal file
25
CapMachine.Wpf/PrismEvent/ChartSetEnableMsg.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
namespace CapMachine.Wpf.PrismEvent
|
||||
{
|
||||
public class ChartSetEnableMsg
|
||||
{
|
||||
/// <summary>
|
||||
/// 机器
|
||||
/// </summary>
|
||||
public string Machine { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Group信息
|
||||
/// </summary>
|
||||
public int GroupTabIndex { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///ChartSetInfo信息
|
||||
/// </summary>
|
||||
public string ChartSetInfo { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///是否启用内容
|
||||
/// </summary>
|
||||
public bool Enable { get; set; }
|
||||
}
|
||||
}
|
||||
9
CapMachine.Wpf/PrismEvent/ChartSetEvent.cs
Normal file
9
CapMachine.Wpf/PrismEvent/ChartSetEvent.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using Prism.Events;
|
||||
|
||||
namespace CapMachine.Wpf.PrismEvent
|
||||
{
|
||||
public class ChartSetEvent : PubSubEvent<ChartSetMsg>
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
30
CapMachine.Wpf/PrismEvent/ChartSetMsg.cs
Normal file
30
CapMachine.Wpf/PrismEvent/ChartSetMsg.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CapMachine.Wpf.PrismEvent
|
||||
{
|
||||
/// <summary>
|
||||
/// 曲线设置的消息内容
|
||||
/// </summary>
|
||||
public class ChartSetMsg
|
||||
{
|
||||
/// <summary>
|
||||
/// 机器
|
||||
/// </summary>
|
||||
public string Machine { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Group信息
|
||||
/// </summary>
|
||||
public int GroupTabIndex { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///ChartSetInfo信息
|
||||
/// </summary>
|
||||
public string ChartSetInfo { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
9
CapMachine.Wpf/PrismEvent/ChartTabGroupSwitchEvent.cs
Normal file
9
CapMachine.Wpf/PrismEvent/ChartTabGroupSwitchEvent.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using Prism.Events;
|
||||
|
||||
namespace CapMachine.Wpf.PrismEvent
|
||||
{
|
||||
public class ChartTabGroupSwitchEvent : PubSubEvent<ChartTabGroupSwitchMsg>
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
21
CapMachine.Wpf/PrismEvent/ChartTabGroupSwitchMsg.cs
Normal file
21
CapMachine.Wpf/PrismEvent/ChartTabGroupSwitchMsg.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CapMachine.Wpf.PrismEvent
|
||||
{
|
||||
public class ChartTabGroupSwitchMsg
|
||||
{
|
||||
/// <summary>
|
||||
/// 机器
|
||||
/// </summary>
|
||||
public string Machine { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Group信息
|
||||
/// </summary>
|
||||
public int GroupTabIndex { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using Prism.Events;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
@@ -6,8 +7,8 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace CapMachine.Wpf.PrismEvent
|
||||
{
|
||||
public enum ChartActionType:byte
|
||||
public class ChartYAxisConfigEvent : PubSubEvent<ChartYAxisConfigMsg>
|
||||
{
|
||||
ReLoadChart=1,
|
||||
|
||||
}
|
||||
}
|
||||
27
CapMachine.Wpf/PrismEvent/ChartYAxisConfigMsg.cs
Normal file
27
CapMachine.Wpf/PrismEvent/ChartYAxisConfigMsg.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
using CapMachine.Model;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CapMachine.Wpf.PrismEvent
|
||||
{
|
||||
public class ChartYAxisConfigMsg
|
||||
{
|
||||
/// <summary>
|
||||
/// 机器
|
||||
/// </summary>
|
||||
public string Machine { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// GroupTab信息
|
||||
/// </summary>
|
||||
public int GroupTabIndex { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Y轴配置
|
||||
/// </summary>
|
||||
public List<ConfigChartYAxis> ConfigChartYAxes { get; set; }
|
||||
}
|
||||
}
|
||||
19
CapMachine.Wpf/PrismEvent/HistoryChartRtSeriesActionEvent.cs
Normal file
19
CapMachine.Wpf/PrismEvent/HistoryChartRtSeriesActionEvent.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using CapMachine.Wpf.Models;
|
||||
using Prism.Events;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CapMachine.Wpf.PrismEvent
|
||||
{
|
||||
/// <summary>
|
||||
/// Chart图表操作的动作事件
|
||||
/// </summary>
|
||||
public class HistoryChartRtSeriesActionEvent : PubSubEvent<ChartRtSeriesActionMsg>
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
17
CapMachine.Wpf/PrismEvent/HistoryChartSetEnableEvent.cs
Normal file
17
CapMachine.Wpf/PrismEvent/HistoryChartSetEnableEvent.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using Prism.Events;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CapMachine.Wpf.PrismEvent
|
||||
{
|
||||
/// <summary>
|
||||
/// Chart 设置是否启用的功能
|
||||
/// </summary>
|
||||
public class HistoryChartSetEnableEvent : PubSubEvent<ChartSetEnableMsg>
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
9
CapMachine.Wpf/PrismEvent/HistoryChartSetEvent.cs
Normal file
9
CapMachine.Wpf/PrismEvent/HistoryChartSetEvent.cs
Normal file
@@ -0,0 +1,9 @@
|
||||
using Prism.Events;
|
||||
|
||||
namespace CapMachine.Wpf.PrismEvent
|
||||
{
|
||||
public class HistoryChartSetEvent : PubSubEvent<ChartSetMsg>
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using Prism.Events;
|
||||
|
||||
namespace CapMachine.Wpf.PrismEvent
|
||||
{
|
||||
public class HistoryChartTabGroupSwitchEvent : PubSubEvent<ChartTabGroupSwitchMsg>
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
14
CapMachine.Wpf/PrismEvent/HistoryDataToChartEvent.cs
Normal file
14
CapMachine.Wpf/PrismEvent/HistoryDataToChartEvent.cs
Normal file
@@ -0,0 +1,14 @@
|
||||
using Prism.Events;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CapMachine.Wpf.PrismEvent
|
||||
{
|
||||
public class HistoryDataToChartEvent : PubSubEvent<HistoryDataToChartMsg>
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
25
CapMachine.Wpf/PrismEvent/HistoryDataToChartMsg.cs
Normal file
25
CapMachine.Wpf/PrismEvent/HistoryDataToChartMsg.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using CapMachine.Wpf.Models;
|
||||
|
||||
namespace CapMachine.Wpf.PrismEvent
|
||||
{
|
||||
/// <summary>
|
||||
/// 传递历史数据给Chart
|
||||
/// </summary>
|
||||
public class HistoryDataToChartMsg
|
||||
{
|
||||
/// <summary>
|
||||
/// 机器
|
||||
/// </summary>
|
||||
public string? Machine { get; set; }
|
||||
|
||||
///// <summary>
|
||||
///// Group信息
|
||||
///// </summary>
|
||||
//public int GroupTabIndex { get; set; }
|
||||
|
||||
/// <summary>
|
||||
///集合数据
|
||||
/// </summary>
|
||||
public List<CsvRecordModel> Data { get; set; }
|
||||
}
|
||||
}
|
||||
13
CapMachine.Wpf/PrismEvent/RecordDataEvent.cs
Normal file
13
CapMachine.Wpf/PrismEvent/RecordDataEvent.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using CapMachine.Wpf.ChannelModel;
|
||||
using Prism.Events;
|
||||
|
||||
namespace CapMachine.Wpf.PrismEvent
|
||||
{
|
||||
/// <summary>
|
||||
/// 记录数据事件
|
||||
/// </summary>
|
||||
public class RecordDataEvent : PubSubEvent<RecordChannelData>
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user