周立功换同星
This commit is contained in:
@@ -7,11 +7,11 @@ using System.Collections.ObjectModel;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using System.Windows.Input;
|
||||
using TSMasterCAN;
|
||||
using UIShare.GlobalVariable;
|
||||
using UIShare.PubEvent;
|
||||
using UIShare.UIViewModel;
|
||||
using UIShare.ViewModelBase;
|
||||
using ZLGUSBCANFD;
|
||||
|
||||
namespace MonitorModule.ViewModels.Dialogs
|
||||
{
|
||||
@@ -197,10 +197,10 @@ namespace MonitorModule.ViewModels.Dialogs
|
||||
/// </summary>
|
||||
private IEnumerable<(string DisplayName, string Fingerprint, string MethodName)> DiscoverCanSignals()
|
||||
{
|
||||
if (_deviceManager?.CANFD?.DBCParser?.MsgDatabase == null) yield break;
|
||||
if (_deviceManager?.CANFD == null) yield break;
|
||||
if (_systemConfig?.ConfigurationList == null) yield break;
|
||||
|
||||
var msgDb = _deviceManager.CANFD.DBCParser.MsgDatabase;
|
||||
var msgDb = DBCParse.MsgDatabase;
|
||||
string canDeviceFingerprint = _deviceManager.GetCanDeviceFingerprint();
|
||||
foreach (var cfg in _systemConfig.ConfigurationList)
|
||||
{
|
||||
@@ -331,10 +331,10 @@ namespace MonitorModule.ViewModels.Dialogs
|
||||
private void OnDbcLoaded(DBCLoadedArgs args)
|
||||
{
|
||||
if (args.Scope != _systemConfig?.Title) return;
|
||||
if (_deviceManager?.CANFD?.DBCParser?.MsgDatabase == null) return;
|
||||
if (_deviceManager?.CANFD == null) return;
|
||||
|
||||
int channel = (int)args.Channel;
|
||||
var msgDb = _deviceManager.CANFD.DBCParser.MsgDatabase;
|
||||
var msgDb = DBCParse.MsgDatabase;
|
||||
if (channel < 0 || channel >= msgDb.Count) return;
|
||||
|
||||
string canDeviceFingerprint = _deviceManager.GetCanDeviceFingerprint();
|
||||
|
||||
Reference in New Issue
Block a user