From c66c93970772433aa8ec608809d034f585e453d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kevin=20Kr=C3=BCger?= Date: Wed, 1 Jun 2022 14:12:22 +0200 Subject: [PATCH] =?UTF-8?q?Projektdateien=20hinzuf=C3=BCgen.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- IPage.cs | 23 +++++++++++++++++ IPlugin.cs | 39 +++++++++++++++++++++++++++++ PTConverter.Plugin.csproj | 51 ++++++++++++++++++++++++++++++++++++++ PTConverter.Plugin.nuspec | 17 +++++++++++++ Properties/AssemblyInfo.cs | 36 +++++++++++++++++++++++++++ 5 files changed, 166 insertions(+) create mode 100644 IPage.cs create mode 100644 IPlugin.cs create mode 100644 PTConverter.Plugin.csproj create mode 100644 PTConverter.Plugin.nuspec create mode 100644 Properties/AssemblyInfo.cs diff --git a/IPage.cs b/IPage.cs new file mode 100644 index 0000000..160ad51 --- /dev/null +++ b/IPage.cs @@ -0,0 +1,23 @@ +using System.Windows.Controls; + +namespace PTConverter.Plugin +{ + /// + /// Represent a Module-Page + /// + public interface IPage + { + /// + /// Instance of an Control(XAML-Page) + /// + UserControl GetPage(); + /// + /// The Main Category + /// + string GetCategory(); + /// + /// The Undercategory of an Main Category Page + /// + string GetUnderCategory(); + } +} diff --git a/IPlugin.cs b/IPlugin.cs new file mode 100644 index 0000000..f3455c9 --- /dev/null +++ b/IPlugin.cs @@ -0,0 +1,39 @@ +using System.Collections.Generic; + +namespace PTConverter.Plugin +{ + /// + /// Describes an Plugin + /// + public interface IPlugin + { + /// + /// Author of the plugin + /// + string Author { get; } + /// + /// Company of the Plugin + /// + string Company { get; } + /// + /// Name of the Plugin + /// + string PluginName { get; } + /// + /// Description of the Plugin + /// + string Description { get; } + /// + /// The Version of the Plugin + /// + string Version { get; } + /// + /// The Icon(Link) of the Plugin + /// + string IconLink { get; } + /// + /// Registers all pages + /// + IEnumerable RegisterPages {get;} + } +} diff --git a/PTConverter.Plugin.csproj b/PTConverter.Plugin.csproj new file mode 100644 index 0000000..3af559e --- /dev/null +++ b/PTConverter.Plugin.csproj @@ -0,0 +1,51 @@ + + + + + Debug + AnyCPU + {F6384BCA-C5A7-4DBA-A051-D15A9494CB3B} + Library + Properties + PTConverter.Plugin + PTConverter.Plugin + v4.7.2 + 512 + true + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + bin\Debug\PTConverter.Plugin.xml + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/PTConverter.Plugin.nuspec b/PTConverter.Plugin.nuspec new file mode 100644 index 0000000..f219940 --- /dev/null +++ b/PTConverter.Plugin.nuspec @@ -0,0 +1,17 @@ + + + + $id$ + 1.0.4 + PTConverter.Plugin + Kevin Krüger + false + MIT + https://git.peacetoke.com/PeaceToke/PTConverter + + A Package to create a Plugin for PTConverter. + Projectwebsite updated. + Kevin Krüger + PTConverter Plugin + + \ No newline at end of file diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..f24fce2 --- /dev/null +++ b/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// Allgemeine Informationen über eine Assembly werden über die folgenden +// Attribute gesteuert. Ändern Sie diese Attributwerte, um die Informationen zu ändern, +// die einer Assembly zugeordnet sind. +[assembly: AssemblyTitle("PTConverter.Plugin")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("PTConverter.Plugin")] +[assembly: AssemblyCopyright("Copyright © 2021")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Durch Festlegen von ComVisible auf FALSE werden die Typen in dieser Assembly +// für COM-Komponenten unsichtbar. Wenn Sie auf einen Typ in dieser Assembly von +// COM aus zugreifen müssen, sollten Sie das ComVisible-Attribut für diesen Typ auf "True" festlegen. +[assembly: ComVisible(false)] + +// Die folgende GUID bestimmt die ID der Typbibliothek, wenn dieses Projekt für COM verfügbar gemacht wird +[assembly: Guid("f6384bca-c5a7-4dba-a051-d15a9494cb3b")] + +// Versionsinformationen für eine Assembly bestehen aus den folgenden vier Werten: +// +// Hauptversion +// Nebenversion +// Buildnummer +// Revision +// +// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden, +// indem Sie "*" wie unten gezeigt eingeben: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")]