diff --git a/Electronics.sln b/Electronics.sln new file mode 100644 index 0000000..aec371c --- /dev/null +++ b/Electronics.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 16 +VisualStudioVersion = 16.0.31911.196 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Electronics", "Electronics\Electronics.csproj", "{063F89C0-DEBC-4C06-8D9A-B8B4C2E80261}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {063F89C0-DEBC-4C06-8D9A-B8B4C2E80261}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {063F89C0-DEBC-4C06-8D9A-B8B4C2E80261}.Debug|Any CPU.Build.0 = Debug|Any CPU + {063F89C0-DEBC-4C06-8D9A-B8B4C2E80261}.Release|Any CPU.ActiveCfg = Release|Any CPU + {063F89C0-DEBC-4C06-8D9A-B8B4C2E80261}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {CD231E98-8D65-4562-8C33-C9A03B0FF724} + EndGlobalSection +EndGlobal diff --git a/Electronics/CapacitorCalculator.xaml b/Electronics/CapacitorCalculator.xaml new file mode 100644 index 0000000..7c848c1 --- /dev/null +++ b/Electronics/CapacitorCalculator.xaml @@ -0,0 +1,12 @@ + + + + + diff --git a/Electronics/CapacitorCalculator.xaml.cs b/Electronics/CapacitorCalculator.xaml.cs new file mode 100644 index 0000000..55923c4 --- /dev/null +++ b/Electronics/CapacitorCalculator.xaml.cs @@ -0,0 +1,35 @@ +using PTConverter.Plugin; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace Electronics +{ + /// + /// Interaktionslogik für CapacitorCalculator.xaml + /// + public partial class CapacitorCalculator : UserControl, IPage + { + public CapacitorCalculator() + { + InitializeComponent(); + } + + public string GetCategory() => "Electronics"; + + public UserControl GetPage() => new CapacitorCalculator(); + + public string GetUnderCategory() => "Capacitor"; + } +} diff --git a/Electronics/Electronics.csproj b/Electronics/Electronics.csproj new file mode 100644 index 0000000..ab0ad75 --- /dev/null +++ b/Electronics/Electronics.csproj @@ -0,0 +1,76 @@ + + + + + Debug + AnyCPU + {063F89C0-DEBC-4C06-8D9A-B8B4C2E80261} + Library + Properties + Electronics + Electronics + v4.7.2 + 512 + true + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + ..\packages\PTConverter.Plugin.1.0.3\lib\net472\PTConverter.Plugin.dll + + + + + + + + + + + + + + + + + CapacitorCalculator.xaml + + + + + ResistorCalculator.xaml + + + + + Designer + MSBuild:Compile + + + Designer + MSBuild:Compile + + + + + + + \ No newline at end of file diff --git a/Electronics/PluginInfo.cs b/Electronics/PluginInfo.cs new file mode 100644 index 0000000..763f897 --- /dev/null +++ b/Electronics/PluginInfo.cs @@ -0,0 +1,30 @@ +using PTConverter.Plugin; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Electronics +{ + class PluginInfo : IPlugin + { + public string Author => "Kevin Krüger"; + + public string Company => "PeaceToke"; + + public string PluginName => "Electronics"; + + public string Description => ""; + + public string Version => "1.0.0"; + + public string IconLink => null; + + IEnumerable IPlugin.RegisterPages => new List() + { + { new CapacitorCalculator() }, + { new ResistorCalculator() } + }; + } +} diff --git a/Electronics/Properties/AssemblyInfo.cs b/Electronics/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..43ef91d --- /dev/null +++ b/Electronics/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("Electronics")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("Electronics")] +[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("063f89c0-debc-4c06-8d9a-b8b4c2e80261")] + +// 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")] diff --git a/Electronics/ResistorCalculator.xaml b/Electronics/ResistorCalculator.xaml new file mode 100644 index 0000000..3290b7e --- /dev/null +++ b/Electronics/ResistorCalculator.xaml @@ -0,0 +1,12 @@ + + + + + diff --git a/Electronics/ResistorCalculator.xaml.cs b/Electronics/ResistorCalculator.xaml.cs new file mode 100644 index 0000000..16abd7a --- /dev/null +++ b/Electronics/ResistorCalculator.xaml.cs @@ -0,0 +1,35 @@ +using PTConverter.Plugin; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows; +using System.Windows.Controls; +using System.Windows.Data; +using System.Windows.Documents; +using System.Windows.Input; +using System.Windows.Media; +using System.Windows.Media.Imaging; +using System.Windows.Navigation; +using System.Windows.Shapes; + +namespace Electronics +{ + /// + /// Interaktionslogik für ResistorCalculator.xaml + /// + public partial class ResistorCalculator : UserControl, IPage + { + public ResistorCalculator() + { + InitializeComponent(); + } + + public string GetCategory() => "Electronics"; + + public UserControl GetPage() => new ResistorCalculator(); + + public string GetUnderCategory() => "Resistor"; + } +} diff --git a/Electronics/packages.config b/Electronics/packages.config new file mode 100644 index 0000000..3a091df --- /dev/null +++ b/Electronics/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file