Files
FSI.BT.IR.Tools/FSI.BT.Tools/Settings/IAppSettings.cs
Maier Stephan SI 56c25672f9 Sicherung
2023-01-29 19:58:40 +01:00

46 lines
1.3 KiB
C#

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