添加项目文件。
This commit is contained in:
21
UIShare/PubEvent/AddDialogTabEvent.cs
Normal file
21
UIShare/PubEvent/AddDialogTabEvent.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using UIShare.UIViewModel;
|
||||
|
||||
namespace UIShare.PubEvent
|
||||
{
|
||||
/// <summary>
|
||||
/// 其他模块向弹窗管理器添加 Tab 的事件。
|
||||
/// 发布方:任何需要将弹窗托管到 DialogManagerView 的模块。
|
||||
/// 订阅方:<c>DialogMangerViewModel</c>(仅一处订阅)。
|
||||
/// <code>
|
||||
/// // 示例:在某个 ViewModel 中发布
|
||||
/// _eventAggregator.GetEvent<AddDialogTabEvent>().Publish(new DialogTabInfo
|
||||
/// {
|
||||
/// Title = "设备配置",
|
||||
/// Content = new DeviceConfigView()
|
||||
/// });
|
||||
/// </code>
|
||||
/// </summary>
|
||||
public class AddDialogTabEvent : PubSubEvent<DialogTabInfo>
|
||||
{
|
||||
}
|
||||
}
|
||||
12
UIShare/PubEvent/AlarmEvent.cs
Normal file
12
UIShare/PubEvent/AlarmEvent.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace UIShare.PubEvent
|
||||
{
|
||||
public class AlarmEvent : PubSubEvent<(string Scope, string Fingerprint, string Status)>
|
||||
{
|
||||
}
|
||||
}
|
||||
12
UIShare/PubEvent/CancelMinimizeEvent.cs
Normal file
12
UIShare/PubEvent/CancelMinimizeEvent.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace UIShare.PubEvent
|
||||
{
|
||||
public class CancelMinimizeEvent:PubSubEvent
|
||||
{
|
||||
}
|
||||
}
|
||||
12
UIShare/PubEvent/ChangeCurrentTagEvent.cs
Normal file
12
UIShare/PubEvent/ChangeCurrentTagEvent.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace UIShare.PubEvent
|
||||
{
|
||||
public class ChangeCurrentTagEvent:PubSubEvent<string>
|
||||
{
|
||||
}
|
||||
}
|
||||
12
UIShare/PubEvent/CollectedCANMessageChangedEvent.cs
Normal file
12
UIShare/PubEvent/CollectedCANMessageChangedEvent.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace UIShare.PubEvent
|
||||
{
|
||||
public class CollectedCANMessageChangedEvent:PubSubEvent
|
||||
{
|
||||
}
|
||||
}
|
||||
12
UIShare/PubEvent/ConnectionChangeEvent.cs
Normal file
12
UIShare/PubEvent/ConnectionChangeEvent.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace UIShare.PubEvent
|
||||
{
|
||||
public class ConnectionChangeEvent:PubSubEvent<(string,bool)>
|
||||
{
|
||||
}
|
||||
}
|
||||
13
UIShare/PubEvent/CurveDataEvent.cs
Normal file
13
UIShare/PubEvent/CurveDataEvent.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace UIShare.PubEvent
|
||||
{
|
||||
public class CurveDataEvent:PubSubEvent<(string, Dictionary<string,double>)>
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
12
UIShare/PubEvent/CurveInteractionEvent.cs
Normal file
12
UIShare/PubEvent/CurveInteractionEvent.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace UIShare.PubEvent
|
||||
{
|
||||
public class CurveInteractionEvent:PubSubEvent<(bool,double)>
|
||||
{
|
||||
}
|
||||
}
|
||||
17
UIShare/PubEvent/DBCLoadedEvent.cs
Normal file
17
UIShare/PubEvent/DBCLoadedEvent.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
namespace UIShare.PubEvent
|
||||
{
|
||||
/// <summary>
|
||||
/// DBC 加载完成事件:通知订阅者某个通道的 DBC 已加载,可以刷新信号列表。
|
||||
/// </summary>
|
||||
public class DBCLoadedEvent : PubSubEvent<DBCLoadedArgs>
|
||||
{
|
||||
}
|
||||
|
||||
public class DBCLoadedArgs
|
||||
{
|
||||
public uint Channel { get; set; }
|
||||
public string Scope { get; set; } = string.Empty;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
18
UIShare/PubEvent/DBCUnloadedEvent.cs
Normal file
18
UIShare/PubEvent/DBCUnloadedEvent.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace UIShare.PubEvent
|
||||
{
|
||||
public class DBCUnloadedEvent : PubSubEvent<DBCUnloadedArgs>
|
||||
{
|
||||
}
|
||||
|
||||
public class DBCUnloadedArgs
|
||||
{
|
||||
public uint Channel { get; set; }
|
||||
public string Scope { get; set; } = string.Empty;
|
||||
}
|
||||
}
|
||||
12
UIShare/PubEvent/DeletedStepEvent.cs
Normal file
12
UIShare/PubEvent/DeletedStepEvent.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace UIShare.PubEvent
|
||||
{
|
||||
public class DeletedStepEvent : PubSubEvent<Guid>
|
||||
{
|
||||
}
|
||||
}
|
||||
12
UIShare/PubEvent/EditSetpEvent.cs
Normal file
12
UIShare/PubEvent/EditSetpEvent.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace UIShare.PubEvent
|
||||
{
|
||||
public class EditSetpEvent : PubSubEvent
|
||||
{
|
||||
}
|
||||
}
|
||||
12
UIShare/PubEvent/ExpandViewEvent.cs
Normal file
12
UIShare/PubEvent/ExpandViewEvent.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace UIShare.PubEvent
|
||||
{
|
||||
public class ExpandViewEvent:PubSubEvent<string>
|
||||
{
|
||||
}
|
||||
}
|
||||
13
UIShare/PubEvent/HardwareDataReportedEvent.cs
Normal file
13
UIShare/PubEvent/HardwareDataReportedEvent.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using Model.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace UIShare.PubEvent
|
||||
{
|
||||
public class HardwareDataReportedEvent : PubSubEvent<HardwareReportArgs>
|
||||
{
|
||||
}
|
||||
}
|
||||
12
UIShare/PubEvent/LoginSuccessEvent.cs
Normal file
12
UIShare/PubEvent/LoginSuccessEvent.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace UIShare.PubEvent
|
||||
{
|
||||
public class LoginSuccessEvent:PubSubEvent
|
||||
{
|
||||
}
|
||||
}
|
||||
12
UIShare/PubEvent/OverlayEvent.cs
Normal file
12
UIShare/PubEvent/OverlayEvent.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace UIShare.PubEvent
|
||||
{
|
||||
public class OverlayEvent : PubSubEvent<bool>
|
||||
{
|
||||
}
|
||||
}
|
||||
12
UIShare/PubEvent/ParamsChangedEvent.cs
Normal file
12
UIShare/PubEvent/ParamsChangedEvent.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace UIShare.PubEvent
|
||||
{
|
||||
public class ParamsChangedEvent:PubSubEvent
|
||||
{
|
||||
}
|
||||
}
|
||||
12
UIShare/PubEvent/RunSingalCompletedEvent.cs
Normal file
12
UIShare/PubEvent/RunSingalCompletedEvent.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace UIShare.PubEvent
|
||||
{
|
||||
public class RunSingalCompletedEvent : PubSubEvent<string>
|
||||
{
|
||||
}
|
||||
}
|
||||
12
UIShare/PubEvent/SettingChangedEvent.cs
Normal file
12
UIShare/PubEvent/SettingChangedEvent.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace UIShare.PubEvent
|
||||
{
|
||||
public class SettingChangedEvent:PubSubEvent
|
||||
{
|
||||
}
|
||||
}
|
||||
12
UIShare/PubEvent/SilenceBuzzerEvent.cs
Normal file
12
UIShare/PubEvent/SilenceBuzzerEvent.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace UIShare.PubEvent
|
||||
{
|
||||
public class SilenceBuzzerEvent:PubSubEvent<string>
|
||||
{
|
||||
}
|
||||
}
|
||||
12
UIShare/PubEvent/StartProcessEvent.cs
Normal file
12
UIShare/PubEvent/StartProcessEvent.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace UIShare.PubEvent
|
||||
{
|
||||
public class StartProcessEvent:PubSubEvent<(string,bool)>
|
||||
{
|
||||
}
|
||||
}
|
||||
12
UIShare/PubEvent/WaitingEvent.cs
Normal file
12
UIShare/PubEvent/WaitingEvent.cs
Normal file
@@ -0,0 +1,12 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace UIShare.PubEvent
|
||||
{
|
||||
public class WaitingEvent : PubSubEvent<bool>
|
||||
{
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user