using System.Windows; using System.Windows.Input; namespace SparkClient; public partial class LoginWindow : Window { public LoginWindow() { InitializeComponent(); WindowStartupLocation = WindowStartupLocation.CenterScreen; } private void Grid_MouseLeftButtonDown(object sender, MouseButtonEventArgs e) { if (e.ButtonState == MouseButtonState.Pressed) { this.DragMove(); } } private void UIElement_OnMouseLeftButtonDown(object sender, MouseButtonEventArgs e) { AccountTextBox.Text = string.Empty; } private void CloseButton_OnClick(object sender, RoutedEventArgs e) { this.Close(); Environment.Exit(0); } }