36 lines
810 B
C#
36 lines
810 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace AwesomeEmailExtractor
|
|
{
|
|
public partial class AuthorizationForm : Form
|
|
{
|
|
public AuthorizationForm()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void loginButton_Click(object sender, EventArgs e)
|
|
{
|
|
try
|
|
{
|
|
Globals.currentUser = Authorization.Login(entryLogin.Text, entryPassword.Text);
|
|
this.Close();
|
|
|
|
new MainForm().Show();
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
MessageBox.Show(ex.Message);
|
|
}
|
|
}
|
|
}
|
|
}
|