diff --git a/MorseCoder.sln b/MorseCoder.sln
new file mode 100644
index 0000000..f1a27b5
--- /dev/null
+++ b/MorseCoder.sln
@@ -0,0 +1,25 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 17
+VisualStudioVersion = 17.1.32421.90
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MorseCoder", "MorseCoder\MorseCoder.csproj", "{A29097B8-ED82-4466-8D09-28E1E595149F}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {A29097B8-ED82-4466-8D09-28E1E595149F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A29097B8-ED82-4466-8D09-28E1E595149F}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {A29097B8-ED82-4466-8D09-28E1E595149F}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {A29097B8-ED82-4466-8D09-28E1E595149F}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {1EADC578-9475-4463-8B94-E09747121771}
+ EndGlobalSection
+EndGlobal
diff --git a/MorseCoder/App.xaml b/MorseCoder/App.xaml
new file mode 100644
index 0000000..d54f9a1
--- /dev/null
+++ b/MorseCoder/App.xaml
@@ -0,0 +1,9 @@
+
+
+
+
+
diff --git a/MorseCoder/App.xaml.cs b/MorseCoder/App.xaml.cs
new file mode 100644
index 0000000..dfe6502
--- /dev/null
+++ b/MorseCoder/App.xaml.cs
@@ -0,0 +1,17 @@
+using System;
+using System.Collections.Generic;
+using System.Configuration;
+using System.Data;
+using System.Linq;
+using System.Threading.Tasks;
+using System.Windows;
+
+namespace MorseCoder
+{
+ ///
+ /// Interaction logic for App.xaml
+ ///
+ public partial class App : Application
+ {
+ }
+}
diff --git a/MorseCoder/AssemblyInfo.cs b/MorseCoder/AssemblyInfo.cs
new file mode 100644
index 0000000..8b5504e
--- /dev/null
+++ b/MorseCoder/AssemblyInfo.cs
@@ -0,0 +1,10 @@
+using System.Windows;
+
+[assembly: ThemeInfo(
+ ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
+ //(used if a resource is not found in the page,
+ // or application resource dictionaries)
+ ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
+ //(used if a resource is not found in the page,
+ // app, or any theme specific resource dictionaries)
+)]
diff --git a/MorseCoder/MainWindow.xaml b/MorseCoder/MainWindow.xaml
new file mode 100644
index 0000000..2bb23fa
--- /dev/null
+++ b/MorseCoder/MainWindow.xaml
@@ -0,0 +1,29 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/MorseCoder/MainWindow.xaml.cs b/MorseCoder/MainWindow.xaml.cs
new file mode 100644
index 0000000..2fbe4a8
--- /dev/null
+++ b/MorseCoder/MainWindow.xaml.cs
@@ -0,0 +1,75 @@
+using System;
+using System.Collections.Generic;
+using System.Diagnostics;
+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 MorseCoder
+{
+ ///
+ /// Interaction logic for MainWindow.xaml
+ ///
+ public partial class MainWindow : Window
+ {
+ private int start = 0;
+ private Dictionary codeLegende = new Dictionary();
+ private List morseWord = new List();
+ private Stopwatch sw = new Stopwatch();
+ public MainWindow()
+ {
+
+ MorseCode getCode = new MorseCode();
+ getCode.Code(codeLegende);
+
+ InitializeComponent();
+ }
+ private void mousen_MouseDown(object sender, MouseButtonEventArgs e)
+ {
+ sw.Start();
+ }
+ private void mousen_MouseUp(object sender, MouseButtonEventArgs e)
+ {
+ sw.Stop();
+ if(sw.Elapsed.TotalMilliseconds > 500)
+ {
+ morseWord.Add("long");
+ }
+ else
+ {
+ morseWord.Add("short");
+ }
+ sw.Reset();
+ code_label.Content = String.Join(" ",morseWord);
+ }
+
+ private void Button_Click(object sender, RoutedEventArgs e)
+ {
+ foreach(KeyValuePair pair in codeLegende)
+ {
+ if(pair.Value.Equals(String.Join(" ", morseWord)))
+ {
+ decode_label.Content += pair.Key;
+ morseWord.Clear();
+ }
+ }
+ }
+
+ private void Clear_Button_Click(object sender, RoutedEventArgs e)
+ {
+ code_label.Content = "";
+ decode_label.Content = "";
+ morseWord.Clear();
+ }
+ }
+ }
+
diff --git a/MorseCoder/MorseCode.cs b/MorseCoder/MorseCode.cs
new file mode 100644
index 0000000..ebcef28
--- /dev/null
+++ b/MorseCoder/MorseCode.cs
@@ -0,0 +1,48 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Controls;
+
+namespace MorseCoder
+{
+
+ internal class MorseCode
+ {
+ private Dictionary code = new Dictionary();
+
+ // Erstellung des KeyValuePair für den MorseCode
+ public Dictionary Code(Dictionary code)
+ {
+ this.code = code;
+ this.code.Add("A", "short long");
+ this.code.Add("B", "long short short short");
+ this.code.Add("C", "long short long short");
+ this.code.Add("D", "long short short");
+ this.code.Add("E", "short");
+ this.code.Add("F", "short short long short");
+ this.code.Add("G", "long long short");
+ this.code.Add("H", "short short short short");
+ this.code.Add("I", "short short");
+ this.code.Add("J", "short long long long");
+ this.code.Add("K", "long short long");
+ this.code.Add("L", "short long short short");
+ this.code.Add("M", "long long");
+ this.code.Add("N", "long short");
+ this.code.Add("O", "long long long");
+ this.code.Add("P", "shor long long short");
+ this.code.Add("Q", "long long short long");
+ this.code.Add("R", "short long short");
+ this.code.Add("S", "short short short");
+ this.code.Add("T", "long");
+ this.code.Add("U", "short short long");
+ this.code.Add("V", "short short short long");
+ this.code.Add("W", "short long long");
+ this.code.Add("X", "long short short long");
+ this.code.Add("Y", "long short long long");
+ this.code.Add("Z", "long long short short");
+ return this.code;
+ }
+ }
+}
diff --git a/MorseCoder/MorseCoder.csproj b/MorseCoder/MorseCoder.csproj
new file mode 100644
index 0000000..b946d64
--- /dev/null
+++ b/MorseCoder/MorseCoder.csproj
@@ -0,0 +1,18 @@
+
+
+
+ WinExe
+ net6.0-windows
+ enable
+ true
+
+
+
+
+
+
+
+
+
+
+
diff --git a/MorseCoder/codec.png b/MorseCoder/codec.png
new file mode 100644
index 0000000..19f10ec
Binary files /dev/null and b/MorseCoder/codec.png differ