Sicherung
This commit is contained in:
43
FSI.BT.Tools/Settings/IAppSettings.cs
Normal file
43
FSI.BT.Tools/Settings/IAppSettings.cs
Normal file
@@ -0,0 +1,43 @@
|
||||
using Config.Net;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FSI.BT.Tools.Settings
|
||||
{
|
||||
public static class AppSettings
|
||||
{
|
||||
public interface IAppSettings
|
||||
{
|
||||
StringValue.IStringValue TimeStampFormat { get; set; }
|
||||
Apps.IApps Apps { get; }
|
||||
|
||||
Urls.IUrls Urls { get; }
|
||||
|
||||
IEnumerable<Folder.IFolder> Folders { get; }
|
||||
|
||||
// IEnumerable<TxtToClip.ITxtToClip> TxtToClip { get; }
|
||||
|
||||
[Option(Alias = "Folders")]
|
||||
string GetFolderByName(string fodlerName, string keyName);
|
||||
|
||||
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user