|
|
@@ -107,8 +107,18 @@ namespace BPASmartClient.CustomResource.Pages.Model |
|
|
|
Time = DateTime.Now.ToString("HH:mm:ss"), |
|
|
|
}; |
|
|
|
|
|
|
|
var res = Sqlite<Alarm>.GetInstance.Base.Add(tempAlarm); |
|
|
|
Sqlite<Alarm>.GetInstance.Save(); |
|
|
|
var res = Sqlite<BPASmartClient.Model.Alarm>.GetInstance.Base.Add(tempAlarm); |
|
|
|
try |
|
|
|
{ |
|
|
|
|
|
|
|
Sqlite<BPASmartClient.Model.Alarm>.GetInstance.Save(); |
|
|
|
|
|
|
|
} |
|
|
|
catch (Exception) |
|
|
|
{ |
|
|
|
|
|
|
|
//throw; |
|
|
|
} |
|
|
|
|
|
|
|
if (Alarms.FirstOrDefault(p => p.Info == AlarmInfo) == null) |
|
|
|
{ |
|
|
|