/// <summary> /// Gets the configuration. /// </summary> /// <param name="kiosksMacID">The kiosks mac ID.</param> /// <returns></returns> public KiosksConfiguration GetConfiguration(string kiosksMacID) { KiosksConfiguration configuration = new KiosksConfiguration(); try { configuration.KiosksMACId = kiosksMacID; configuration.BayID = Properties.Settings.Default[kiosksMacID].ToString() ?? string.Empty; configuration.FunctionName = Properties.Settings.Default[configuration.BayID].ToString() ?? string.Empty; ; } catch (Exception ex) { //log exception } return configuration; }
/// <summary> /// Gets the configuration. /// </summary> /// <param name="kiosksMacID">The kiosks mac ID.</param> /// <returns></returns> public KiosksConfiguration GetConfiguration(string kiosksMacID) { KiosksConfiguration configuration = new KiosksConfiguration(); try { configuration.KiosksMACId = kiosksMacID; configuration.BayID = Properties.Settings.Default[kiosksMacID].ToString() ?? string.Empty; configuration.FunctionName = Properties.Settings.Default[configuration.BayID].ToString() ?? string.Empty;; } catch (Exception ex) { //log exception } return(configuration); }