diff --git a/BPASmartClient.CustomResource/Pages/Model/AlarmHelper.cs b/BPASmartClient.CustomResource/Pages/Model/AlarmHelper.cs index 73fdbdc5..696a7922 100644 --- a/BPASmartClient.CustomResource/Pages/Model/AlarmHelper.cs +++ b/BPASmartClient.CustomResource/Pages/Model/AlarmHelper.cs @@ -106,10 +106,10 @@ namespace BPASmartClient.CustomResource.Pages.Model Value = value.ToString(), Time = DateTime.Now.ToString("HH:mm:ss"), }; - - var res = Sqlite.GetInstance.Base.Add(tempAlarm); try { + var res = Sqlite.GetInstance.Base.Add(tempAlarm); + Sqlite.GetInstance.Save(); } catch (Exception) diff --git a/DosingSystem/View/RecipeControlView.xaml b/DosingSystem/View/RecipeControlView.xaml index 19c2d49c..901e230a 100644 --- a/DosingSystem/View/RecipeControlView.xaml +++ b/DosingSystem/View/RecipeControlView.xaml @@ -499,7 +499,7 @@ FontStyle="Normal" Foreground="#ff2bd06f" IcoText="" - IsEnabled="{Binding IsEnable}" + IsEnabled="True" Style="{StaticResource IcoButtonStyle}" />