Example #1
0
 public void ShowManagement(object sender, EventArgs e)
 {
     using (var frmManagement = new Management())
     {
         frmManagement.ShowDialog();
         if (frmManagement.ChangeSetting)
         {
             FormSetting?.LoadInfoDevice();
         }
     }
 }
Example #2
0
        public void UpdateListDevice(List <DeviceInfo> lstDevice)
        {
            using (var objDb = new clsDBUltity())
            {
                try
                {
                    foreach (var device in lstDevice)
                    {
                        if (!string.IsNullOrEmpty(device.MacAddress))
                        {
                            objDb.SaveDevice(device);
                        }
                    }
                }
                catch (Exception)
                {
                }
            }

            FormSetting?.LoadInfoDevice();
        }
Example #3
0
 public void UpdateListDevice(List <DeviceInfo> lstDevice)
 {
     clsSuportSerialize.BinSerialize(clsConfig.SQLITE_DB_PATH, lstDevice);
     FormSetting?.LoadInfoDevice();
 }