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);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
39
FSI.BT.Tools/Settings/IApps.cs
Normal file
39
FSI.BT.Tools/Settings/IApps.cs
Normal file
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FSI.BT.Tools.Settings
|
||||
{
|
||||
public class Apps
|
||||
{
|
||||
public interface IApps
|
||||
{
|
||||
IEnumerable<Exe.IExe> SieSimaticManager { get; }
|
||||
IEnumerable<Exe.IExe> SieTiaV13 { get; }
|
||||
IEnumerable<Exe.IExe> SieTiaV14 { get; }
|
||||
IEnumerable<Exe.IExe> SieTiaV15 { get; }
|
||||
IEnumerable<Exe.IExe> SieTiaV16 { get; }
|
||||
IEnumerable<Exe.IExe> SieTiaV17 { get; }
|
||||
IEnumerable<Exe.IExe> SieTiaVStarter { get; }
|
||||
IEnumerable<Exe.IExe> Epl { get; }
|
||||
IEnumerable<Exe.IExe> Npp { get; }
|
||||
IEnumerable<Exe.IExe> TotalCmd { get; }
|
||||
IEnumerable<Exe.IExe> TeXstudio { get; }
|
||||
IEnumerable<Exe.IExe> Vs { get; }
|
||||
IEnumerable<Exe.IExe> VsCode { get; }
|
||||
IEnumerable<Exe.IExe> Rdp { get; }
|
||||
IEnumerable<Exe.IExe> Outlook { get; }
|
||||
IEnumerable<Exe.IExe> Teams { get; }
|
||||
IEnumerable<Exe.IExe> Excel { get; }
|
||||
IEnumerable<Exe.IExe> Word { get; }
|
||||
IEnumerable<Exe.IExe> PaintNet { get; }
|
||||
IEnumerable<Exe.IExe> Gimp { get; }
|
||||
IEnumerable<Exe.IExe> Vnc { get; }
|
||||
IEnumerable<Exe.IExe> VncAdrBook { get; }
|
||||
IEnumerable<Exe.IExe> IbaAnalyzer { get; }
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
18
FSI.BT.Tools/Settings/IExe.cs
Normal file
18
FSI.BT.Tools/Settings/IExe.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FSI.BT.Tools.Settings
|
||||
{
|
||||
public class Exe
|
||||
{
|
||||
public interface IExe
|
||||
{
|
||||
string ExePath { get; set; }
|
||||
string Path { get; set; }
|
||||
string Arguments { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
13
FSI.BT.Tools/Settings/IFolder.cs
Normal file
13
FSI.BT.Tools/Settings/IFolder.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FSI.BT.Tools.Settings
|
||||
{
|
||||
public class Folder
|
||||
{
|
||||
public interface IFolder : Lib.Guis.Folder.Mgt.IInterface { }
|
||||
}
|
||||
}
|
||||
16
FSI.BT.Tools/Settings/IStringValue.cs
Normal file
16
FSI.BT.Tools/Settings/IStringValue.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FSI.BT.Tools.Settings
|
||||
{
|
||||
public class StringValue
|
||||
{
|
||||
public interface IStringValue
|
||||
{
|
||||
string Value { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
13
FSI.BT.Tools/Settings/ITxtToClip.cs
Normal file
13
FSI.BT.Tools/Settings/ITxtToClip.cs
Normal file
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FSI.BT.Tools.Settings
|
||||
{
|
||||
public class TxtToClip
|
||||
{
|
||||
// public interface ITxtToClip : Lib.Guis.TxtToClip.Mgt.Model.IInterface { }
|
||||
}
|
||||
}
|
||||
25
FSI.BT.Tools/Settings/IUrls.cs
Normal file
25
FSI.BT.Tools/Settings/IUrls.cs
Normal file
@@ -0,0 +1,25 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FSI.BT.Tools.Settings
|
||||
{
|
||||
public class Urls
|
||||
{
|
||||
public interface IUrls
|
||||
{
|
||||
string ZentralWeb { get; }
|
||||
string Schichtbuch { get; }
|
||||
string SPS { get; }
|
||||
string Pl1Pls { get; }
|
||||
string Pl2Pls { get; }
|
||||
string Pl2Als { get; }
|
||||
string Pl3Pls { get; }
|
||||
string Gitea { get; }
|
||||
string Wiki { get; }
|
||||
string Erp { get; }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user