Files
annotations/Azaion.Launcher/Loader.xaml.cs
T
2024-11-28 18:04:34 +02:00

33 lines
783 B
C#

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 async void RunClick(object sender, RoutedEventArgs e)
{
Process.Start("Azaion.Suite.exe", $"-e {TbEmail.Text} -p {TbPassword.Password}");
await Task.Delay(2000);
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();
}
}