|
|
@@ -3,11 +3,10 @@ using System.Collections.Generic; |
|
|
|
using System.Linq; |
|
|
|
using System.Text; |
|
|
|
using System.Threading.Tasks; |
|
|
|
using Microsoft.Toolkit.Mvvm.ComponentModel; |
|
|
|
using BPA.Helper; |
|
|
|
using System.Collections.Concurrent; |
|
|
|
using System.Collections.ObjectModel; |
|
|
|
using System.Windows; |
|
|
|
using BPASmartClient.Helper; |
|
|
|
using Microsoft.Toolkit.Mvvm.Input; |
|
|
|
using BPASmartClient.CustomResource.Pages.Model; |
|
|
|
using BPASmartClient.Model; |
|
|
@@ -16,7 +15,7 @@ using System.Threading; |
|
|
|
|
|
|
|
namespace BPASmartClient.CustomResource.Pages.ViewModel |
|
|
|
{ |
|
|
|
public class AlarmViewModel : ObservableObject |
|
|
|
public class AlarmViewModel : NotifyBase |
|
|
|
{ |
|
|
|
public AlarmViewModel() |
|
|
|
{ |
|
|
@@ -72,7 +71,7 @@ namespace BPASmartClient.CustomResource.Pages.ViewModel |
|
|
|
|
|
|
|
private void GetHistoryAlarm() |
|
|
|
{ |
|
|
|
var data = Sqlite<Alarm>.GetInstance.GetData(); |
|
|
|
var data = Sqlite<BPASmartClient.Model.Alarm>.GetInstance.GetData(); |
|
|
|
if (data != null) |
|
|
|
{ |
|
|
|
HistoryAlarm.Clear(); |
|
|
@@ -132,8 +131,8 @@ namespace BPASmartClient.CustomResource.Pages.ViewModel |
|
|
|
private DateTime _mEndDateTime = DateTime.Now; |
|
|
|
|
|
|
|
|
|
|
|
public static ObservableCollection<Alarm> AlarmInfos { get; set; } |
|
|
|
public ObservableCollection<Alarm> HistoryAlarm { get; set; } = new ObservableCollection<Alarm>(); |
|
|
|
public static ObservableCollection<BPASmartClient.Model.Alarm> AlarmInfos { get; set; } |
|
|
|
public ObservableCollection<BPASmartClient.Model.Alarm> HistoryAlarm { get; set; } = new(); |
|
|
|
|
|
|
|
} |
|
|
|
} |