Files
Chat/PrototypChat/LoginMaske.xaml.cs

32 lines
676 B
C#
Raw Normal View History

2025-03-27 15:22:10 +01:00
using System.Threading.Tasks;
using System.Windows.Input;
using ChatController.LoginKlassen;
2017-09-12 14:32:34 +02:00
2017-09-15 16:39:07 +02:00
namespace ownChat
2017-09-12 14:32:34 +02:00
{
2019-04-02 13:43:30 +02:00
public partial class LoginMaske
2017-09-12 14:32:34 +02:00
{
public LoginMaske()
{
InitializeComponent();
2017-10-12 12:53:28 +02:00
2019-04-02 13:43:30 +02:00
Title = "ownChat Desktop";
2017-09-12 14:32:34 +02:00
}
private void LoginControl_OnOnLogin(ChatDatenUebergabe cdu)
{
2019-04-02 13:43:30 +02:00
var mainWindow = new MainWindow(cdu);
mainWindow.Show();
2017-09-12 14:32:34 +02:00
Close();
}
private void LoginMaske_OnKeyDown(object sender, KeyEventArgs e)
{
if(e.Key == Key.Enter)
{
LoginControl.Login();
}
}
2017-09-12 14:32:34 +02:00
}
}