Exemplo n.º 1
0
 public static void SetMonitoringType(Monitoring_Types mnt_type)
 {
     using (BubisDEntities db = new BubisDEntities())
     {
         var mnt = db.Monitoring_Types.First(l => l.MNT_Type == mnt_type.MNT_Type);
         mnt.MNT_Enabled = mnt_type.MNT_Enabled;
         db.SaveChanges();
     }
 }
Exemplo n.º 2
0
 private void SaveMonitoringPreferences(string type, bool enabled)
 {
     var mnt_type = new Monitoring_Types()
     {
         MNT_Type = type,
         MNT_Enabled = enabled
     };
     MonitoringManager.SetMonitoringType(mnt_type);
 }