mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 11:26:31 +00:00
33 lines
783 B
C#
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();
|
|
}
|
|
}
|