40 lines
1023 B
C#
40 lines
1023 B
C#
using System.Windows;
|
|
using System.Windows.Controls;
|
|
|
|
namespace SkyTeam
|
|
{
|
|
public partial class MainWindow : Window
|
|
{
|
|
public MainWindow()
|
|
{
|
|
InitializeComponent();
|
|
<<<<<<< HEAD
|
|
TestDatabaseConnection();
|
|
}
|
|
|
|
private void TestDatabaseConnection()
|
|
{
|
|
DataBase db = new DataBase();
|
|
bool success = db.TestConnection();
|
|
|
|
if (success)
|
|
MessageBox.Show("Datenbank ist verfügbar!", "Erfolg", MessageBoxButton.OK, MessageBoxImage.Information);
|
|
else
|
|
MessageBox.Show("Probleme mit der Verbindung.", "Fehler", MessageBoxButton.OK, MessageBoxImage.Error);
|
|
=======
|
|
ShowLoginPage();
|
|
}
|
|
|
|
private void ShowLoginPage()
|
|
{
|
|
MainFrame.Navigate(new LogInPage());
|
|
}
|
|
|
|
public void NavigateToApp()
|
|
{
|
|
MainFrame.Navigate(new NavigationPage());
|
|
>>>>>>> deaa68880afaf3dd53903180eef7a43c3e23056a
|
|
}
|
|
}
|
|
}
|