diff --git a/CANModule/ViewModels/ZLGCANFDViewModel.cs b/CANModule/ViewModels/ZLGCANFDViewModel.cs index 9688c8a..67ec38c 100644 --- a/CANModule/ViewModels/ZLGCANFDViewModel.cs +++ b/CANModule/ViewModels/ZLGCANFDViewModel.cs @@ -164,9 +164,9 @@ namespace CANModule.ViewModels set => SetProperty(ref _IsSaved, value); } - public ObservableCollection dbcAutoLoadList + public ObservableCollection DBCAutoLoadList { - get => _systemConfig?.dbcAutoLoadList ?? new ObservableCollection(); + get => _systemConfig?.DBCAutoLoadList ?? new ObservableCollection(); } private AutoDBCLoadItem _SelectedDcAutoLoad; @@ -360,7 +360,7 @@ namespace CANModule.ViewModels RaisePropertyChanged(nameof(BLFPath)); RaisePropertyChanged(nameof(DBCPath)); - RaisePropertyChanged(nameof(dbcAutoLoadList)); + RaisePropertyChanged(nameof(DBCAutoLoadList)); } public override void OnNavigatedFrom(NavigationContext navigationContext) @@ -413,7 +413,7 @@ namespace CANModule.ViewModels { if (SelectedDcAutoLoad != null) { - dbcAutoLoadList.Remove(SelectedDcAutoLoad); + DBCAutoLoadList.Remove(SelectedDcAutoLoad); } } @@ -491,10 +491,10 @@ namespace CANModule.ViewModels if (re && IsSaved) { - var item = dbcAutoLoadList.FirstOrDefault(s => s.DBCChannel == DBCChannel); + var item = DBCAutoLoadList.FirstOrDefault(s => s.DBCChannel == DBCChannel); if (item == null) { - dbcAutoLoadList.Add(new AutoDBCLoadItem + DBCAutoLoadList.Add(new AutoDBCLoadItem { DBCFilePath = DBCPath, DBCChannel = DBCChannel @@ -502,8 +502,8 @@ namespace CANModule.ViewModels } else { - dbcAutoLoadList.Remove(item); - dbcAutoLoadList.Add(new AutoDBCLoadItem + DBCAutoLoadList.Remove(item); + DBCAutoLoadList.Add(new AutoDBCLoadItem { DBCFilePath = DBCPath, DBCChannel = DBCChannel diff --git a/CANModule/Views/ZLGCANFDView.xaml b/CANModule/Views/ZLGCANFDView.xaml index 3c5a562..b063f7c 100644 --- a/CANModule/Views/ZLGCANFDView.xaml +++ b/CANModule/Views/ZLGCANFDView.xaml @@ -124,7 +124,7 @@