public void ShowManagement(object sender, EventArgs e) { using (var frmManagement = new Management()) { frmManagement.ShowDialog(); if (frmManagement.ChangeSetting) { FormSetting?.LoadInfoDevice(); } } }
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(); }
public void UpdateListDevice(List <DeviceInfo> lstDevice) { clsSuportSerialize.BinSerialize(clsConfig.SQLITE_DB_PATH, lstDevice); FormSetting?.LoadInfoDevice(); }