diff --git a/Project.Persistence/SQLite.cs b/Project.Persistence/SQLite.cs index d8d053b..73b5e35 100644 --- a/Project.Persistence/SQLite.cs +++ b/Project.Persistence/SQLite.cs @@ -5,9 +5,9 @@ namespace Project.Persistence; public partial class SQLite { //filepath for home-pc: - private static string _dbPath = "C:/Users/Soi/Desktop/keywi.db"; + //private static string _dbPath = "C:/Users/Soi/Desktop/keywi.db"; //filepath for work-laptop: - //private static string _dbPath = "C:/Users/lowns/Desktop/keywi.db"; + private static string _dbPath = "C:/Users/lowns/Desktop/keywi.db"; //KLASSENVARIABLEN ERSTELLEN //private static string loginname; diff --git a/Project.View/Login Page/LoginPage.axaml b/Project.View/Login Page/LoginPage.axaml index b2c369b..989fe77 100644 --- a/Project.View/Login Page/LoginPage.axaml +++ b/Project.View/Login Page/LoginPage.axaml @@ -2,50 +2,74 @@ x:Class="Project.View.LoginPage" xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> - - - - - - Your Login Name: - - Password: + + + + + + + + + + - - - - + + + + + + + + + + + + + + + + + + - \ No newline at end of file diff --git a/Project.View/Login Page/LoginPage.axaml.cs b/Project.View/Login Page/LoginPage.axaml.cs index a28b529..1cd3232 100644 --- a/Project.View/Login Page/LoginPage.axaml.cs +++ b/Project.View/Login Page/LoginPage.axaml.cs @@ -25,7 +25,7 @@ public partial class LoginPage : UserControl string? loginName = LoginNameBox.Text ?? string.Empty; string? loginPassword = LoginPasswordBox.Text ?? string.Empty; bool allowLogin = AppController.CompareLogin(loginName, loginPassword); - var newPopUp = new PopUp(); + var newPopUp = new LoginErrorPopUp(); if (allowLogin) { //show menuview diff --git a/Project.View/LoginErrorPopup/LoginPageError.axaml b/Project.View/LoginErrorPopup/LoginPageError.axaml new file mode 100644 index 0000000..a59e5c0 --- /dev/null +++ b/Project.View/LoginErrorPopup/LoginPageError.axaml @@ -0,0 +1,56 @@ + + + + + + + + + + + + + + + + + +