diff --git a/ClientApp/App.xaml b/ClientApp/App.xaml
index 61cadcc..daae7b7 100644
--- a/ClientApp/App.xaml
+++ b/ClientApp/App.xaml
@@ -19,11 +19,11 @@
-
-
-
-
-
+
+
+
+
+
diff --git a/ClientApp/Views/LoginView.xaml b/ClientApp/Views/LoginView.xaml
index 9266c85..ed554b4 100644
--- a/ClientApp/Views/LoginView.xaml
+++ b/ClientApp/Views/LoginView.xaml
@@ -5,6 +5,7 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:ClientApp.Views"
xmlns:viewModels="clr-namespace:ClientApp.ViewModels"
+ xmlns:Util="clr-namespace:Util.MagicCode"
mc:Ignorable="d"
ShowsNavigationUI="False"
d:DesignHeight="450" d:DesignWidth="800">
@@ -14,9 +15,9 @@
-
+
-
+
diff --git a/DoctorApp/App.xaml b/DoctorApp/App.xaml
index 86b2dd4..2a38c42 100644
--- a/DoctorApp/App.xaml
+++ b/DoctorApp/App.xaml
@@ -20,11 +20,11 @@
-
-
-
-
-
+
+
+
+
+
diff --git a/DoctorApp/Views/LoginView.xaml b/DoctorApp/Views/LoginView.xaml
index 144d10d..15c1bd0 100644
--- a/DoctorApp/Views/LoginView.xaml
+++ b/DoctorApp/Views/LoginView.xaml
@@ -5,6 +5,7 @@
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:DoctorApp.Views"
xmlns:viewModels="clr-namespace:DoctorApp.ViewModels"
+ xmlns:Util="clr-namespace:Util.MagicCode"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800"
>
@@ -12,9 +13,9 @@
-
+
-
+
diff --git a/Hashing/Hashing.projitems b/Hashing/Hashing.projitems
index c169d90..5958572 100644
--- a/Hashing/Hashing.projitems
+++ b/Hashing/Hashing.projitems
@@ -11,27 +11,28 @@
-
-
+
+
+
-
+
Designer
MSBuild:Compile
-
+
Designer
MSBuild:Compile
-
+
Designer
MSBuild:Compile
-
+
Designer
MSBuild:Compile
-
+
Designer
MSBuild:Compile
diff --git a/Hashing/WPFStuff/MagicCode/FocusAdvancement.cs b/Hashing/WPFStuff/MagicCode/FocusAdvancement.cs
new file mode 100644
index 0000000..16ebeea
--- /dev/null
+++ b/Hashing/WPFStuff/MagicCode/FocusAdvancement.cs
@@ -0,0 +1,40 @@
+using System;
+using System.Windows;
+using System.Windows.Input;
+
+namespace Util.MagicCode
+{
+ public static class FocusAdvancement
+ {
+ public static bool GetAdvancesByEnterKey(DependencyObject obj)
+ {
+ return (bool)obj.GetValue(AdvancesByEnterKeyProperty);
+ }
+
+ public static void SetAdvancesByEnterKey(DependencyObject obj, bool value)
+ {
+ obj.SetValue(AdvancesByEnterKeyProperty, value);
+ }
+
+ public static readonly DependencyProperty AdvancesByEnterKeyProperty =
+ DependencyProperty.RegisterAttached("AdvancesByEnterKey", typeof(bool), typeof(FocusAdvancement),
+ new UIPropertyMetadata(OnAdvancesByEnterKeyPropertyChanged));
+
+ static void OnAdvancesByEnterKeyPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
+ {
+ var element = d as UIElement;
+ if (element == null) return;
+
+ if ((bool)e.NewValue) element.KeyDown += Keydown;
+ else element.KeyDown -= Keydown;
+ }
+
+ static void Keydown(object sender, KeyEventArgs e)
+ {
+ if (!e.Key.Equals(Key.Enter)) return;
+
+ var element = sender as UIElement;
+ if (element != null) element.MoveFocus(new TraversalRequest(FocusNavigationDirection.Next));
+ }
+ }
+}
diff --git a/Hashing/MagicCode/WindowResizer.cs b/Hashing/WPFStuff/MagicCode/WindowResizer.cs
similarity index 100%
rename from Hashing/MagicCode/WindowResizer.cs
rename to Hashing/WPFStuff/MagicCode/WindowResizer.cs
diff --git a/Hashing/ObservableObject.cs b/Hashing/WPFStuff/ObservableObject.cs
similarity index 100%
rename from Hashing/ObservableObject.cs
rename to Hashing/WPFStuff/ObservableObject.cs
diff --git a/Hashing/WPFStuff/Styles/Buttons.xaml b/Hashing/WPFStuff/Styles/Buttons.xaml
new file mode 100644
index 0000000..c951dd8
--- /dev/null
+++ b/Hashing/WPFStuff/Styles/Buttons.xaml
@@ -0,0 +1,65 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Hashing/WPFStuff/Styles/Colors.xaml b/Hashing/WPFStuff/Styles/Colors.xaml
new file mode 100644
index 0000000..8e4f8ef
--- /dev/null
+++ b/Hashing/WPFStuff/Styles/Colors.xaml
@@ -0,0 +1,25 @@
+
+
+ #efefef
+
+
+
+ #fafafa
+
+
+ #d7d7d7
+
+
+ #686868
+
+
+ #000
+
+
+ #fff
+
+
+
+
\ No newline at end of file
diff --git a/Hashing/WPFStuff/Styles/Fonts.xaml b/Hashing/WPFStuff/Styles/Fonts.xaml
new file mode 100644
index 0000000..b0e7544
--- /dev/null
+++ b/Hashing/WPFStuff/Styles/Fonts.xaml
@@ -0,0 +1,5 @@
+
+
+
\ No newline at end of file
diff --git a/Hashing/WPFStuff/Styles/Texts.xaml b/Hashing/WPFStuff/Styles/Texts.xaml
new file mode 100644
index 0000000..4fdba93
--- /dev/null
+++ b/Hashing/WPFStuff/Styles/Texts.xaml
@@ -0,0 +1,11 @@
+
+
+
+
\ No newline at end of file
diff --git a/Hashing/WPFStuff/Styles/Windows.xaml b/Hashing/WPFStuff/Styles/Windows.xaml
new file mode 100644
index 0000000..b0e7544
--- /dev/null
+++ b/Hashing/WPFStuff/Styles/Windows.xaml
@@ -0,0 +1,5 @@
+
+
+
\ No newline at end of file