using System.Windows; using System.Windows.Controls; using System.Windows.Input; using Azaion.Common.DTO; namespace Azaion.Suite; public partial class Login { public Login() { InitializeComponent(); } public event EventHandler? CredentialsEntered; private void LoginClick(object sender, RoutedEventArgs e) { CredentialsEntered?.Invoke(this, new ApiCredentials(TbEmail.Text, TbPassword.Password)); Close(); } private void CloseClick(object sender, RoutedEventArgs e) => Close(); private void MainMouseMove(object sender, MouseEventArgs e) { if (e.OriginalSource is Button || e.OriginalSource is TextBox) return; if (e.LeftButton == MouseButtonState.Pressed) DragMove(); } }