mirror of
https://github.com/azaion/annotations.git
synced 2026-04-22 11:56:29 +00:00
35 lines
841 B
C#
35 lines
841 B
C#
using System.Diagnostics;
|
|
using System.Windows;
|
|
using System.Windows.Controls;
|
|
using System.Windows.Input;
|
|
using Azaion.CommonSecurity.DTO;
|
|
|
|
namespace Azaion.LoaderUI;
|
|
|
|
public partial class Login
|
|
{
|
|
public Login()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void LoginClick(object sender, RoutedEventArgs e)
|
|
{
|
|
LoginBtn.Cursor = Cursors.Wait;
|
|
Cursor = Cursors.Wait;
|
|
Process.Start("Azaion.Suite.exe", $"-e {TbEmail.Text} -p {TbPassword.Password}");
|
|
Close();
|
|
}
|
|
|
|
private void CloseClick(object sender, RoutedEventArgs e) => Close();
|
|
|
|
private void MainMouseMove(object sende0r, MouseEventArgs e)
|
|
{
|
|
if (e.OriginalSource is Button || e.OriginalSource is TextBox)
|
|
return;
|
|
|
|
if (e.LeftButton == MouseButtonState.Pressed)
|
|
DragMove();
|
|
}
|
|
}
|