diff --git a/.vs/Server Dashboard/DesignTimeBuild/.dtbcache.v2 b/.vs/Server Dashboard/DesignTimeBuild/.dtbcache.v2
index be66e0f..76a16cb 100644
Binary files a/.vs/Server Dashboard/DesignTimeBuild/.dtbcache.v2 and b/.vs/Server Dashboard/DesignTimeBuild/.dtbcache.v2 differ
diff --git a/.vs/Server Dashboard/v16/.suo b/.vs/Server Dashboard/v16/.suo
index 67dfa8c..e147453 100644
Binary files a/.vs/Server Dashboard/v16/.suo and b/.vs/Server Dashboard/v16/.suo differ
diff --git a/Server Dashboard/App.config b/Server Dashboard/App.config
new file mode 100644
index 0000000..a4ef717
--- /dev/null
+++ b/Server Dashboard/App.config
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Server Dashboard/App.xaml b/Server Dashboard/App.xaml
index 36df237..e4da259 100644
--- a/Server Dashboard/App.xaml
+++ b/Server Dashboard/App.xaml
@@ -12,8 +12,8 @@
-
-
+
+
@@ -26,6 +26,8 @@
+
+
+
+
diff --git a/Server Dashboard/AttachedProperty/BaseAttachedProperty.cs b/Server Dashboard/AttachedProperty/BaseAttachedProperty.cs
new file mode 100644
index 0000000..55ae5e3
--- /dev/null
+++ b/Server Dashboard/AttachedProperty/BaseAttachedProperty.cs
@@ -0,0 +1,20 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Windows;
+
+namespace Server_Dashboard {
+ public abstract class BaseAttachedProperty
+ where Parent : BaseAttachedProperty, new() {
+ public event Action ValueChanged = (sender, e) => { };
+ public static Parent Instance { get; private set; } = new Parent();
+ public static readonly DependencyProperty ValueProperty = DependencyProperty.RegisterAttached("Value", typeof(Property), typeof(BaseAttachedProperty), new PropertyMetadata(new PropertyChangedCallback(OnValuePropertyChanged)));
+ private static void OnValuePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e) {
+ Instance.OnValueChanged(d, e);
+ Instance.ValueChanged(d, e);
+ }
+ public static Property GetValue(DependencyObject d) => (Property)d.GetValue(ValueProperty);
+ public static void SetValue(DependencyObject d, Property value) => d.SetValue(ValueProperty, value);
+ public virtual void OnValueChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e) { }
+ }
+}
diff --git a/Server Dashboard/AttachedProperty/PasswordBoxProperties.cs b/Server Dashboard/AttachedProperty/PasswordBoxProperties.cs
new file mode 100644
index 0000000..c564c2d
--- /dev/null
+++ b/Server Dashboard/AttachedProperty/PasswordBoxProperties.cs
@@ -0,0 +1,30 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using System.Windows;
+using System.Windows.Controls;
+
+namespace Server_Dashboard {
+ public class MonitorPasswordProperty : BaseAttachedProperty {
+ public override void OnValueChanged(DependencyObject sender, DependencyPropertyChangedEventArgs e) {
+ var passwordBox = sender as PasswordBox;
+ if (passwordBox == null)
+ return;
+ passwordBox.PasswordChanged -= PasswordBox_PasswordChanged;
+
+ if ((bool)e.NewValue) {
+ HasTextProperty.SetValue(passwordBox);
+ passwordBox.PasswordChanged += PasswordBox_PasswordChanged;
+ }
+ }
+
+ private void PasswordBox_PasswordChanged(object sender, RoutedEventArgs e) {
+ HasTextProperty.SetValue((PasswordBox)sender);
+ }
+ }
+ public class HasTextProperty : BaseAttachedProperty {
+ public static void SetValue(DependencyObject sender) {
+ SetValue(sender, ((PasswordBox)sender).SecurePassword.Length < 1);
+ }
+ }
+}
diff --git a/Server Dashboard/Database/DatabaseHandler.cs b/Server Dashboard/Database/DatabaseHandler.cs
index 1b2bdf0..d7459e7 100644
--- a/Server Dashboard/Database/DatabaseHandler.cs
+++ b/Server Dashboard/Database/DatabaseHandler.cs
@@ -2,19 +2,37 @@
using System;
using System.Collections.Generic;
using System.Configuration;
+using System.Data;
using System.Data.SqlClient;
using System.Reflection;
namespace Server_Dashboard {
- class DatabaseHandler {
+ public static class DatabaseHandler {
+
+ public static bool CheckLogin(string uname, string passwd) {
+ string valid = "False";
+ ConnectToDatabase(con => {
+ string query = "EXEC ValidateUserLogin @Username = @uname, @Password = @passwd, @Valid = @valid OUTPUT";
+ using (SqlCommand com = new SqlCommand(query, con)) {
+ com.Parameters.AddWithValue("@uname", uname);
+ com.Parameters.AddWithValue("@passwd", passwd);
+ com.Parameters.Add("@valid", SqlDbType.NVarChar, 250);
+ com.Parameters["@valid"].Direction = ParameterDirection.Output;
+ com.ExecuteNonQuery();
+ valid = Convert.ToString(com.Parameters["@Valid"].Value);
+ }
+ });
+ return Convert.ToBoolean(valid);
+ }
+
#region Private methods
///
/// Opens a database connection
///
/// Callback type SqlConnection
///
- private SqlConnection ConnectToDatabase(Action callback) {
- using (SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["Co2AuswertungDB"].ConnectionString)) {
+ private static SqlConnection ConnectToDatabase(Action callback) {
+ using (SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["ServerDashboardDB"].ConnectionString)) {
try {
con.Open();
callback(con);
diff --git a/Server Dashboard/LoginWindow.xaml b/Server Dashboard/LoginWindow.xaml
index fe4b101..827960b 100644
--- a/Server Dashboard/LoginWindow.xaml
+++ b/Server Dashboard/LoginWindow.xaml
@@ -5,6 +5,7 @@
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:i="http://schemas.microsoft.com/xaml/behaviors"
xmlns:local="clr-namespace:Server_Dashboard"
+ x:Name="Login"
mc:Ignorable="d"
Title="Server Dashboard" Height="700" Width="500" WindowStyle="None" ResizeMode="NoResize" Background="Transparent" AllowsTransparency="True">
@@ -15,7 +16,8 @@
-
+
+
@@ -61,11 +63,12 @@
-
-
+
+
-
+
+
diff --git a/Server Dashboard/LoginWindow.xaml.cs b/Server Dashboard/LoginWindow.xaml.cs
index 2ac64c4..44c6287 100644
--- a/Server Dashboard/LoginWindow.xaml.cs
+++ b/Server Dashboard/LoginWindow.xaml.cs
@@ -1,4 +1,5 @@
using System;
+using System.Security;
using System.Windows;
using System.Windows.Input;
@@ -6,10 +7,13 @@ namespace Server_Dashboard {
///
/// Interaction logic for LoginWindow.xaml
///
- public partial class LoginWindow : Window {
+ public partial class LoginWindow : Window, IHavePassword {
public LoginWindow() {
InitializeComponent();
DataContext = new LoginViewModel();
}
+
+ public SecureString SecurePassword => Password.SecurePassword;
+
}
}
diff --git a/Server Dashboard/Security/SecureStringHelpers.cs b/Server Dashboard/Security/SecureStringHelpers.cs
new file mode 100644
index 0000000..800056b
--- /dev/null
+++ b/Server Dashboard/Security/SecureStringHelpers.cs
@@ -0,0 +1,22 @@
+using System;
+using System.Collections.Generic;
+using System.Runtime.InteropServices;
+using System.Security;
+using System.Text;
+
+namespace Server_Dashboard {
+ public static class SecureStringHelpers {
+ public static string Unsecure(this SecureString secureString) {
+ if (secureString == null)
+ return string.Empty;
+ var unmanagedString = IntPtr.Zero;
+
+ try {
+ unmanagedString = Marshal.SecureStringToGlobalAllocUnicode(secureString);
+ return Marshal.PtrToStringUni(unmanagedString);
+ } finally {
+ Marshal.ZeroFreeGlobalAllocUnicode(unmanagedString);
+ }
+ }
+ }
+}
diff --git a/Server Dashboard/Server Dashboard.csproj b/Server Dashboard/Server Dashboard.csproj
index 716c551..b6f17d8 100644
--- a/Server Dashboard/Server Dashboard.csproj
+++ b/Server Dashboard/Server Dashboard.csproj
@@ -12,11 +12,6 @@
-
-
-
-
-
@@ -27,4 +22,8 @@
+
+
+
+
diff --git a/Server Dashboard/ViewModels/Interfaces/IHavePassword.cs b/Server Dashboard/ViewModels/Interfaces/IHavePassword.cs
new file mode 100644
index 0000000..9c82b1a
--- /dev/null
+++ b/Server Dashboard/ViewModels/Interfaces/IHavePassword.cs
@@ -0,0 +1,10 @@
+using System;
+using System.Collections.Generic;
+using System.Security;
+using System.Text;
+
+namespace Server_Dashboard {
+ public interface IHavePassword {
+ SecureString SecurePassword { get; }
+ }
+}
diff --git a/Server Dashboard/ViewModels/LoginViewModel.cs b/Server Dashboard/ViewModels/LoginViewModel.cs
index 0678607..752146c 100644
--- a/Server Dashboard/ViewModels/LoginViewModel.cs
+++ b/Server Dashboard/ViewModels/LoginViewModel.cs
@@ -1,15 +1,62 @@
using System;
using System.Collections.Generic;
+using System.Security;
using System.Text;
+using System.Windows.Input;
namespace Server_Dashboard {
- class LoginViewModel {
- private string password;
+ class LoginViewModel : BaseViewModel {
- public string Password {
- get { return password; }
- set { password = value; }
+ private string username;
+
+ public string Username {
+ get { return username; }
+ set {
+ if (username != value)
+ username = value;
+ OnPropertyChanged(nameof(username));
+ }
}
+ private string errorText;
+
+ public string ErrorText {
+ get { return errorText; }
+ set {
+ if (errorText != value)
+ errorText = value;
+ OnPropertyChanged(nameof(errorText));
+ }
+ }
+
+
+ public LoginViewModel() {
+ LoginCommand = new RelayCommand(Login);
+ }
+
+ public ICommand LoginCommand { get; set; }
+
+ private void Login(object parameter) {
+ if (!String.IsNullOrWhiteSpace(Username) && !String.IsNullOrWhiteSpace((parameter as IHavePassword).SecurePassword.Unsecure())) {
+ if (DatabaseHandler.CheckLogin(Username, (parameter as IHavePassword).SecurePassword.Unsecure())) {
+ Console.WriteLine();
+ } else {
+ ErrorText = "Username or password is wrong.";
+ return;
+ }
+ } else if (String.IsNullOrWhiteSpace(Username) && String.IsNullOrWhiteSpace((parameter as IHavePassword).SecurePassword.Unsecure())) {
+ ErrorText = "Please provide a username and password";
+ return;
+ }
+ if (String.IsNullOrWhiteSpace(Username)) {
+ ErrorText = "Username cannot be empty.";
+ return;
+ }
+ if (String.IsNullOrWhiteSpace((parameter as IHavePassword).SecurePassword.Unsecure())) {
+ ErrorText = "Password cannot be empty.";
+ return;
+ }
+ ErrorText = "";
+ }
}
}
diff --git a/Server Dashboard/bin/Debug/netcoreapp3.1/Server Dashboard.dll b/Server Dashboard/bin/Debug/netcoreapp3.1/Server Dashboard.dll
index bf5758f..f985fb4 100644
Binary files a/Server Dashboard/bin/Debug/netcoreapp3.1/Server Dashboard.dll and b/Server Dashboard/bin/Debug/netcoreapp3.1/Server Dashboard.dll differ
diff --git a/Server Dashboard/bin/Debug/netcoreapp3.1/Server Dashboard.dll.config b/Server Dashboard/bin/Debug/netcoreapp3.1/Server Dashboard.dll.config
new file mode 100644
index 0000000..a4ef717
--- /dev/null
+++ b/Server Dashboard/bin/Debug/netcoreapp3.1/Server Dashboard.dll.config
@@ -0,0 +1,9 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/Server Dashboard/bin/Debug/netcoreapp3.1/Server Dashboard.pdb b/Server Dashboard/bin/Debug/netcoreapp3.1/Server Dashboard.pdb
index c375322..4a22dd2 100644
Binary files a/Server Dashboard/bin/Debug/netcoreapp3.1/Server Dashboard.pdb and b/Server Dashboard/bin/Debug/netcoreapp3.1/Server Dashboard.pdb differ
diff --git a/Server Dashboard/obj/Debug/netcoreapp3.1/App.baml b/Server Dashboard/obj/Debug/netcoreapp3.1/App.baml
index b50dda5..5b0e056 100644
Binary files a/Server Dashboard/obj/Debug/netcoreapp3.1/App.baml and b/Server Dashboard/obj/Debug/netcoreapp3.1/App.baml differ
diff --git a/Server Dashboard/obj/Debug/netcoreapp3.1/App.g.cs b/Server Dashboard/obj/Debug/netcoreapp3.1/App.g.cs
index abbc275..d5a0004 100644
--- a/Server Dashboard/obj/Debug/netcoreapp3.1/App.g.cs
+++ b/Server Dashboard/obj/Debug/netcoreapp3.1/App.g.cs
@@ -1,4 +1,4 @@
-#pragma checksum "..\..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "977B0ABA5D21CA80041E32A932A206A161E41C09"
+#pragma checksum "..\..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "74B190EC288932EF98E3D09F645AFA4D89DB749F"
//------------------------------------------------------------------------------
//
// Dieser Code wurde von einem Tool generiert.
diff --git a/Server Dashboard/obj/Debug/netcoreapp3.1/App.g.i.cs b/Server Dashboard/obj/Debug/netcoreapp3.1/App.g.i.cs
index abbc275..d5a0004 100644
--- a/Server Dashboard/obj/Debug/netcoreapp3.1/App.g.i.cs
+++ b/Server Dashboard/obj/Debug/netcoreapp3.1/App.g.i.cs
@@ -1,4 +1,4 @@
-#pragma checksum "..\..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "977B0ABA5D21CA80041E32A932A206A161E41C09"
+#pragma checksum "..\..\..\App.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "74B190EC288932EF98E3D09F645AFA4D89DB749F"
//------------------------------------------------------------------------------
//
// Dieser Code wurde von einem Tool generiert.
diff --git a/Server Dashboard/obj/Debug/netcoreapp3.1/GeneratedInternalTypeHelper.g.cs b/Server Dashboard/obj/Debug/netcoreapp3.1/GeneratedInternalTypeHelper.g.cs
new file mode 100644
index 0000000..49b7571
--- /dev/null
+++ b/Server Dashboard/obj/Debug/netcoreapp3.1/GeneratedInternalTypeHelper.g.cs
@@ -0,0 +1,62 @@
+//------------------------------------------------------------------------------
+//
+// Dieser Code wurde von einem Tool generiert.
+// Laufzeitversion:4.0.30319.42000
+//
+// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
+// der Code erneut generiert wird.
+//
+//------------------------------------------------------------------------------
+
+namespace XamlGeneratedNamespace {
+
+
+ ///
+ /// GeneratedInternalTypeHelper
+ ///
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "5.0.4.0")]
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public sealed class GeneratedInternalTypeHelper : System.Windows.Markup.InternalTypeHelper {
+
+ ///
+ /// CreateInstance
+ ///
+ protected override object CreateInstance(System.Type type, System.Globalization.CultureInfo culture) {
+ return System.Activator.CreateInstance(type, ((System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic)
+ | (System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.CreateInstance)), null, null, culture);
+ }
+
+ ///
+ /// GetPropertyValue
+ ///
+ protected override object GetPropertyValue(System.Reflection.PropertyInfo propertyInfo, object target, System.Globalization.CultureInfo culture) {
+ return propertyInfo.GetValue(target, System.Reflection.BindingFlags.Default, null, null, culture);
+ }
+
+ ///
+ /// SetPropertyValue
+ ///
+ protected override void SetPropertyValue(System.Reflection.PropertyInfo propertyInfo, object target, object value, System.Globalization.CultureInfo culture) {
+ propertyInfo.SetValue(target, value, System.Reflection.BindingFlags.Default, null, null, culture);
+ }
+
+ ///
+ /// CreateDelegate
+ ///
+ protected override System.Delegate CreateDelegate(System.Type delegateType, object target, string handler) {
+ return ((System.Delegate)(target.GetType().InvokeMember("_CreateDelegate", (System.Reflection.BindingFlags.InvokeMethod
+ | (System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance)), null, target, new object[] {
+ delegateType,
+ handler}, null)));
+ }
+
+ ///
+ /// AddEventHandler
+ ///
+ protected override void AddEventHandler(System.Reflection.EventInfo eventInfo, object target, System.Delegate handler) {
+ eventInfo.AddEventHandler(target, handler);
+ }
+ }
+}
+
diff --git a/Server Dashboard/obj/Debug/netcoreapp3.1/GeneratedInternalTypeHelper.g.i.cs b/Server Dashboard/obj/Debug/netcoreapp3.1/GeneratedInternalTypeHelper.g.i.cs
new file mode 100644
index 0000000..49b7571
--- /dev/null
+++ b/Server Dashboard/obj/Debug/netcoreapp3.1/GeneratedInternalTypeHelper.g.i.cs
@@ -0,0 +1,62 @@
+//------------------------------------------------------------------------------
+//
+// Dieser Code wurde von einem Tool generiert.
+// Laufzeitversion:4.0.30319.42000
+//
+// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
+// der Code erneut generiert wird.
+//
+//------------------------------------------------------------------------------
+
+namespace XamlGeneratedNamespace {
+
+
+ ///
+ /// GeneratedInternalTypeHelper
+ ///
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "5.0.4.0")]
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ public sealed class GeneratedInternalTypeHelper : System.Windows.Markup.InternalTypeHelper {
+
+ ///
+ /// CreateInstance
+ ///
+ protected override object CreateInstance(System.Type type, System.Globalization.CultureInfo culture) {
+ return System.Activator.CreateInstance(type, ((System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.NonPublic)
+ | (System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.CreateInstance)), null, null, culture);
+ }
+
+ ///
+ /// GetPropertyValue
+ ///
+ protected override object GetPropertyValue(System.Reflection.PropertyInfo propertyInfo, object target, System.Globalization.CultureInfo culture) {
+ return propertyInfo.GetValue(target, System.Reflection.BindingFlags.Default, null, null, culture);
+ }
+
+ ///
+ /// SetPropertyValue
+ ///
+ protected override void SetPropertyValue(System.Reflection.PropertyInfo propertyInfo, object target, object value, System.Globalization.CultureInfo culture) {
+ propertyInfo.SetValue(target, value, System.Reflection.BindingFlags.Default, null, null, culture);
+ }
+
+ ///
+ /// CreateDelegate
+ ///
+ protected override System.Delegate CreateDelegate(System.Type delegateType, object target, string handler) {
+ return ((System.Delegate)(target.GetType().InvokeMember("_CreateDelegate", (System.Reflection.BindingFlags.InvokeMethod
+ | (System.Reflection.BindingFlags.NonPublic | System.Reflection.BindingFlags.Instance)), null, target, new object[] {
+ delegateType,
+ handler}, null)));
+ }
+
+ ///
+ /// AddEventHandler
+ ///
+ protected override void AddEventHandler(System.Reflection.EventInfo eventInfo, object target, System.Delegate handler) {
+ eventInfo.AddEventHandler(target, handler);
+ }
+ }
+}
+
diff --git a/Server Dashboard/obj/Debug/netcoreapp3.1/LoginWindow.baml b/Server Dashboard/obj/Debug/netcoreapp3.1/LoginWindow.baml
index e02c8b3..e95a321 100644
Binary files a/Server Dashboard/obj/Debug/netcoreapp3.1/LoginWindow.baml and b/Server Dashboard/obj/Debug/netcoreapp3.1/LoginWindow.baml differ
diff --git a/Server Dashboard/obj/Debug/netcoreapp3.1/LoginWindow.g.cs b/Server Dashboard/obj/Debug/netcoreapp3.1/LoginWindow.g.cs
index b1f7716..ac3aca8 100644
--- a/Server Dashboard/obj/Debug/netcoreapp3.1/LoginWindow.g.cs
+++ b/Server Dashboard/obj/Debug/netcoreapp3.1/LoginWindow.g.cs
@@ -1,4 +1,4 @@
-#pragma checksum "..\..\..\LoginWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "BCF5079F8AC1784378A490329B2D27B8A3CCECFD"
+#pragma checksum "..\..\..\LoginWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "DF7FEA542AE21C1D71DCD21AA55E8BDD50DAC57A"
//------------------------------------------------------------------------------
//
// Dieser Code wurde von einem Tool generiert.
@@ -47,7 +47,15 @@ namespace Server_Dashboard {
public partial class LoginWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
- #line 53 "..\..\..\LoginWindow.xaml"
+ #line 8 "..\..\..\LoginWindow.xaml"
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+ internal Server_Dashboard.LoginWindow Login;
+
+ #line default
+ #line hidden
+
+
+ #line 55 "..\..\..\LoginWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox UserName;
@@ -55,7 +63,7 @@ namespace Server_Dashboard {
#line hidden
- #line 64 "..\..\..\LoginWindow.xaml"
+ #line 66 "..\..\..\LoginWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBlock PasswordHint;
@@ -63,7 +71,7 @@ namespace Server_Dashboard {
#line hidden
- #line 65 "..\..\..\LoginWindow.xaml"
+ #line 67 "..\..\..\LoginWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.PasswordBox Password;
@@ -91,6 +99,13 @@ namespace Server_Dashboard {
#line hidden
}
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "5.0.4.0")]
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal System.Delegate _CreateDelegate(System.Type delegateType, string handler) {
+ return System.Delegate.CreateDelegate(delegateType, this, handler);
+ }
+
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "5.0.4.0")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
@@ -101,12 +116,15 @@ namespace Server_Dashboard {
switch (connectionId)
{
case 1:
- this.UserName = ((System.Windows.Controls.TextBox)(target));
+ this.Login = ((Server_Dashboard.LoginWindow)(target));
return;
case 2:
- this.PasswordHint = ((System.Windows.Controls.TextBlock)(target));
+ this.UserName = ((System.Windows.Controls.TextBox)(target));
return;
case 3:
+ this.PasswordHint = ((System.Windows.Controls.TextBlock)(target));
+ return;
+ case 4:
this.Password = ((System.Windows.Controls.PasswordBox)(target));
return;
}
diff --git a/Server Dashboard/obj/Debug/netcoreapp3.1/LoginWindow.g.i.cs b/Server Dashboard/obj/Debug/netcoreapp3.1/LoginWindow.g.i.cs
index b1f7716..ac3aca8 100644
--- a/Server Dashboard/obj/Debug/netcoreapp3.1/LoginWindow.g.i.cs
+++ b/Server Dashboard/obj/Debug/netcoreapp3.1/LoginWindow.g.i.cs
@@ -1,4 +1,4 @@
-#pragma checksum "..\..\..\LoginWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "BCF5079F8AC1784378A490329B2D27B8A3CCECFD"
+#pragma checksum "..\..\..\LoginWindow.xaml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "DF7FEA542AE21C1D71DCD21AA55E8BDD50DAC57A"
//------------------------------------------------------------------------------
//
// Dieser Code wurde von einem Tool generiert.
@@ -47,7 +47,15 @@ namespace Server_Dashboard {
public partial class LoginWindow : System.Windows.Window, System.Windows.Markup.IComponentConnector {
- #line 53 "..\..\..\LoginWindow.xaml"
+ #line 8 "..\..\..\LoginWindow.xaml"
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
+ internal Server_Dashboard.LoginWindow Login;
+
+ #line default
+ #line hidden
+
+
+ #line 55 "..\..\..\LoginWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBox UserName;
@@ -55,7 +63,7 @@ namespace Server_Dashboard {
#line hidden
- #line 64 "..\..\..\LoginWindow.xaml"
+ #line 66 "..\..\..\LoginWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.TextBlock PasswordHint;
@@ -63,7 +71,7 @@ namespace Server_Dashboard {
#line hidden
- #line 65 "..\..\..\LoginWindow.xaml"
+ #line 67 "..\..\..\LoginWindow.xaml"
[System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1823:AvoidUnusedPrivateFields")]
internal System.Windows.Controls.PasswordBox Password;
@@ -91,6 +99,13 @@ namespace Server_Dashboard {
#line hidden
}
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "5.0.4.0")]
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal System.Delegate _CreateDelegate(System.Type delegateType, string handler) {
+ return System.Delegate.CreateDelegate(delegateType, this, handler);
+ }
+
[System.Diagnostics.DebuggerNonUserCodeAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "5.0.4.0")]
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
@@ -101,12 +116,15 @@ namespace Server_Dashboard {
switch (connectionId)
{
case 1:
- this.UserName = ((System.Windows.Controls.TextBox)(target));
+ this.Login = ((Server_Dashboard.LoginWindow)(target));
return;
case 2:
- this.PasswordHint = ((System.Windows.Controls.TextBlock)(target));
+ this.UserName = ((System.Windows.Controls.TextBox)(target));
return;
case 3:
+ this.PasswordHint = ((System.Windows.Controls.TextBlock)(target));
+ return;
+ case 4:
this.Password = ((System.Windows.Controls.PasswordBox)(target));
return;
}
diff --git a/Server Dashboard/obj/Debug/netcoreapp3.1/Server Dashboard.csproj.CoreCompileInputs.cache b/Server Dashboard/obj/Debug/netcoreapp3.1/Server Dashboard.csproj.CoreCompileInputs.cache
index e896e03..6aca5f1 100644
--- a/Server Dashboard/obj/Debug/netcoreapp3.1/Server Dashboard.csproj.CoreCompileInputs.cache
+++ b/Server Dashboard/obj/Debug/netcoreapp3.1/Server Dashboard.csproj.CoreCompileInputs.cache
@@ -1 +1 @@
-2d00fed8572cd61607e336f9293a29754e9405e3
+f1717d53be58eb9a59391431391201bfbf17cc09
diff --git a/Server Dashboard/obj/Debug/netcoreapp3.1/Server Dashboard.csproj.FileListAbsolute.txt b/Server Dashboard/obj/Debug/netcoreapp3.1/Server Dashboard.csproj.FileListAbsolute.txt
index 0238cfc..b0c5963 100644
--- a/Server Dashboard/obj/Debug/netcoreapp3.1/Server Dashboard.csproj.FileListAbsolute.txt
+++ b/Server Dashboard/obj/Debug/netcoreapp3.1/Server Dashboard.csproj.FileListAbsolute.txt
@@ -26,3 +26,5 @@ C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\obj\Debug\netcor
C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\obj\Debug\netcoreapp3.1\LoginWindow.g.cs
C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\obj\Debug\netcoreapp3.1\LoginWindow.baml
C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\bin\Debug\netcoreapp3.1\Microsoft.Xaml.Behaviors.dll
+C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\obj\Debug\netcoreapp3.1\GeneratedInternalTypeHelper.g.cs
+C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\bin\Debug\netcoreapp3.1\Server Dashboard.dll.config
diff --git a/Server Dashboard/obj/Debug/netcoreapp3.1/Server Dashboard.csprojAssemblyReference.cache b/Server Dashboard/obj/Debug/netcoreapp3.1/Server Dashboard.csprojAssemblyReference.cache
index 562e24d..c007e9b 100644
Binary files a/Server Dashboard/obj/Debug/netcoreapp3.1/Server Dashboard.csprojAssemblyReference.cache and b/Server Dashboard/obj/Debug/netcoreapp3.1/Server Dashboard.csprojAssemblyReference.cache differ
diff --git a/Server Dashboard/obj/Debug/netcoreapp3.1/Server Dashboard.dll b/Server Dashboard/obj/Debug/netcoreapp3.1/Server Dashboard.dll
index bf5758f..f985fb4 100644
Binary files a/Server Dashboard/obj/Debug/netcoreapp3.1/Server Dashboard.dll and b/Server Dashboard/obj/Debug/netcoreapp3.1/Server Dashboard.dll differ
diff --git a/Server Dashboard/obj/Debug/netcoreapp3.1/Server Dashboard.g.resources b/Server Dashboard/obj/Debug/netcoreapp3.1/Server Dashboard.g.resources
index 40829a7..047bf85 100644
Binary files a/Server Dashboard/obj/Debug/netcoreapp3.1/Server Dashboard.g.resources and b/Server Dashboard/obj/Debug/netcoreapp3.1/Server Dashboard.g.resources differ
diff --git a/Server Dashboard/obj/Debug/netcoreapp3.1/Server Dashboard.pdb b/Server Dashboard/obj/Debug/netcoreapp3.1/Server Dashboard.pdb
index c375322..4a22dd2 100644
Binary files a/Server Dashboard/obj/Debug/netcoreapp3.1/Server Dashboard.pdb and b/Server Dashboard/obj/Debug/netcoreapp3.1/Server Dashboard.pdb differ
diff --git a/Server Dashboard/obj/Debug/netcoreapp3.1/Server Dashboard_MarkupCompile.cache b/Server Dashboard/obj/Debug/netcoreapp3.1/Server Dashboard_MarkupCompile.cache
index 0d099ba..9e79acf 100644
--- a/Server Dashboard/obj/Debug/netcoreapp3.1/Server Dashboard_MarkupCompile.cache
+++ b/Server Dashboard/obj/Debug/netcoreapp3.1/Server Dashboard_MarkupCompile.cache
@@ -12,7 +12,7 @@ TRACE;DEBUG;NETCOREAPP;NETCOREAPP3_1;
C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\App.xaml
1-1623698816
-11-1758370662
+151761447773
194-1159729825
LoginWindow.xaml;
diff --git a/Server Dashboard/obj/Debug/netcoreapp3.1/Server Dashboard_MarkupCompile.i.cache b/Server Dashboard/obj/Debug/netcoreapp3.1/Server Dashboard_MarkupCompile.i.cache
index 378f031..45bcbc1 100644
--- a/Server Dashboard/obj/Debug/netcoreapp3.1/Server Dashboard_MarkupCompile.i.cache
+++ b/Server Dashboard/obj/Debug/netcoreapp3.1/Server Dashboard_MarkupCompile.i.cache
@@ -12,7 +12,7 @@ TRACE;DEBUG;NETCOREAPP;NETCOREAPP3_1;
C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard\App.xaml
1-1623698816
-13937269364
+17162120503
194-1159729825
LoginWindow.xaml;