public void LoadSettings() { HostIDOne = Lumi4SettingsLibrary.LoadSetting(nameof(HostIDOne)); HostIDTwo = Lumi4SettingsLibrary.LoadSetting(nameof(HostIDTwo)); NetworkIDOne = Lumi4SettingsLibrary.LoadSetting(nameof(NetworkIDOne)); NetworkIDTwo = Lumi4SettingsLibrary.LoadSetting(nameof(NetworkIDTwo)); }
public void SaveSettings() { try { Lumi4SettingsLibrary.SaveSetting(nameof(HostIDOne), HostIDOne); Lumi4SettingsLibrary.SaveSetting(nameof(HostIDTwo), HostIDTwo); Lumi4SettingsLibrary.SaveSetting(nameof(NetworkIDOne), NetworkIDOne); Lumi4SettingsLibrary.SaveSetting(nameof(NetworkIDTwo), NetworkIDTwo); } catch (Exception ex) { Debug.WriteLine(ex.Message); } }