Sicherung

This commit is contained in:
Maier Stephan SI
2023-01-16 16:03:54 +01:00
parent 43297bb259
commit 63512e77aa
22 changed files with 1293 additions and 1218 deletions

View File

@@ -1,9 +1,4 @@
using Config.Net;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Collections.Generic;
namespace FSI.BT.Tools.Settings
{
@@ -11,17 +6,24 @@ namespace FSI.BT.Tools.Settings
{
public interface IAppSettings
{
StringValue.IStringValue TimeStampFormat { get; set; }
Apps.IApps Apps { get; }
IEnumerable<StringValue.IStringValue> Users { get; }
IEnumerable<StringValue.IStringValue> Admins { get; }
Urls.IUrls Urls { 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; }
//[Option(Alias = "Folders")]
//string GetFolderByName(string fodlerName, string keyName);
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)
@@ -29,7 +31,7 @@ namespace FSI.BT.Tools.Settings
foreach (var folder in folders)
{
if (folder.Name.Equals(name))
{
{
return (folder.Path, folder.Description);
}
}