using System.Collections.Generic; namespace FSI.BT.Tools.Settings { public static class AppSettings { public interface IAppSettings { IEnumerable Users { get; } IEnumerable Admins { get; } string SuperAdmin { get; } StringValue.IStringValue Pw { get; set; } StringValue.IStringValue TimeStampFormat { get; set; } IEnumerable Cmds { get; } IEnumerable Folders { get; } IEnumerable TxtToClip { get; } IEnumerable Rdps { get; } Lib.Guis.SieTiaWinCCMsgMgt.IInterface WinCC { get; set; } Lib.Guis.IbaDirSync.IInterface IbaDirSync { get; set; } } public static (string path, string description) GetFolderByName(IEnumerable folders, string name) { foreach (var folder in folders) { if (folder.Name.Equals(name)) { return (folder.Path, folder.Description); } } return (null, null); } } }