using System.Diagnostics; using System.Windows; using System.Windows.Controls; using System.Windows.Input; namespace Azaion.Launcher; public partial class Loader : Window { public Loader() { InitializeComponent(); } private void RunClick(object sender, RoutedEventArgs e) { Process.Start("Azaion.Suite.exe", $"-e {TbEmail.Text} -p {TbPassword.Password}"); } 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(); } }