Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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;
- using BetterSocks;
- using System.Net;
- namespace xInfinity_New_Version
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- }
- private void notifyIcon1_MouseDoubleClick(object sender, MouseEventArgs e)
- {
- }
- private void Form1_Load(object sender, EventArgs e)
- {
- Properties.Settings.Default.username = textEdit1.Text;
- Properties.Settings.Default.password = textEdit2.Text;
- AuthResponse ar = Seal.Authenticate("OILOvjhgmdU2X8YoseJxlGhahDlFc8j1Q4Qmo7CLkwOiF");
- if (!ar.status)
- Environment.Exit(123); // Failed to auth, exiting
- Properties.Settings.Default.username = textEdit1.Text;
- Properties.Settings.Default.password = textEdit2.Text;
- Properties.Settings.Default.username = textEdit1.Text;
- Properties.Settings.Default.password = textEdit2.Text;
- Properties.Settings.Default.Save();
- }
- private void checkBox1_CheckedChanged(object sender, EventArgs e)
- {
- }
- private void labelControl1_Click(object sender, EventArgs e)
- {
- }
- private void simpleButton1_Click(object sender, EventArgs e)
- {
- LoginResponse lr = Seal.Login(textEdit1.Text, textEdit2.Text);
- if (lr.status)
- {
- MessageBox.Show("Sucessfully Logged In!");
- Properties.Settings.Default.username = textEdit1.Text;
- Properties.Settings.Default.password = textEdit2.Text;
- new MainForm().Show();
- Hide();
- }
- else
- {
- MessageBox.Show("Please Check Youve Entered The Correct Credentials");
- }
- }
- private void labelControl2_Click(object sender, EventArgs e)
- {
- }
- private void simpleButton2_Click(object sender, EventArgs e)
- {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement