Advertisement
GingeeMods

Untitled

Sep 18th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.26 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. using BetterSocks;
  11. using System.Net;
  12.  
  13. namespace xInfinity_New_Version
  14. {
  15. public partial class Form1 : Form
  16. {
  17. public Form1()
  18. {
  19. InitializeComponent();
  20. }
  21.  
  22. private void notifyIcon1_MouseDoubleClick(object sender, MouseEventArgs e)
  23. {
  24.  
  25. }
  26.  
  27. private void Form1_Load(object sender, EventArgs e)
  28. {
  29. Properties.Settings.Default.username = textEdit1.Text;
  30. Properties.Settings.Default.password = textEdit2.Text;
  31. AuthResponse ar = Seal.Authenticate("OILOvjhgmdU2X8YoseJxlGhahDlFc8j1Q4Qmo7CLkwOiF");
  32. if (!ar.status)
  33. Environment.Exit(123); // Failed to auth, exiting
  34. Properties.Settings.Default.username = textEdit1.Text;
  35. Properties.Settings.Default.password = textEdit2.Text;
  36. Properties.Settings.Default.username = textEdit1.Text;
  37. Properties.Settings.Default.password = textEdit2.Text;
  38. Properties.Settings.Default.Save();
  39. }
  40.  
  41. private void checkBox1_CheckedChanged(object sender, EventArgs e)
  42. {
  43.  
  44. }
  45.  
  46. private void labelControl1_Click(object sender, EventArgs e)
  47. {
  48.  
  49. }
  50.  
  51. private void simpleButton1_Click(object sender, EventArgs e)
  52. {
  53. LoginResponse lr = Seal.Login(textEdit1.Text, textEdit2.Text);
  54. if (lr.status)
  55. {
  56. MessageBox.Show("Sucessfully Logged In!");
  57. Properties.Settings.Default.username = textEdit1.Text;
  58. Properties.Settings.Default.password = textEdit2.Text;
  59. new MainForm().Show();
  60. Hide();
  61. }
  62. else
  63. {
  64. MessageBox.Show("Please Check Youve Entered The Correct Credentials");
  65. }
  66. }
  67.  
  68. private void labelControl2_Click(object sender, EventArgs e)
  69. {
  70.  
  71. }
  72.  
  73. private void simpleButton2_Click(object sender, EventArgs e)
  74. {
  75.  
  76. }
  77. }
  78. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement