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 WindowsFormsApp2;
- //█░░ █▀▀█ █▀▀▀ ░▀░ █▀▀▄
- //█░░ █░░█ █░▀█ ▀█▀ █░░█
- //▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀ ▀░░▀
- //█░░ █▀▀█ █▀▀▀ ░▀░ █▀▀▄
- //█░░ █░░█ █░▀█ ▀█▀ █░░█
- //▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀ ▀░░▀
- //█░░ █▀▀█ █▀▀▀ ░▀░ █▀▀▄
- //█░░ █░░█ █░▀█ ▀█▀ █░░█
- //▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀ ▀░░▀
- //█░░ █▀▀█ █▀▀▀ ░▀░ █▀▀▄
- //█░░ █░░█ █░▀█ ▀█▀ █░░█
- //▀▀▀ ▀▀▀▀ ▀▀▀▀ ▀▀▀ ▀░░▀
- // NOTE: THIS IS THE LOGIN FORM (START FORM)
- namespace SimpleLoader
- {
- //▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃
- public partial class Form2 : Form
- {
- public Point mouseLocation;
- public Form2()
- {
- InitializeComponent();
- }
- private void textBox1_TextChanged(object sender, EventArgs e)
- //▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃
- {
- }
- private void button2_Click(object sender, EventArgs e)
- {
- Application.Exit(); // when close button is clicked, program will close
- //▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃
- }
- private void Form2_Load(object sender, EventArgs e)
- {
- }
- //▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃
- // THIS IS THE LOGIN SECTION. YOU CAN MAKE SQL DATABSE IF YOU WANT TO.
- // I JUST MADE THIS QUICKLY FOR AN EXAMPLE
- private void button1_Click(object sender, EventArgs e)
- {
- String username = "motify";
- String pass = "login";
- if ((textBox1.Text == username) && (textBox2.Text == pass))
- {
- MessageBox.Show("Welcome back, User!", "OmniLoader | By MoTiFy");
- WindowsFormsApp2.Form1 f1 = new Form1();
- f1.Show();
- this.Hide();
- }
- else
- {
- MessageBox.Show("Incorrect username or password, try again!", "OmniLoader | By MoTiFy");
- }
- //▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃
- //else (IGNORE THIS)
- }
- //▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃
- // IGNORE THIS SECTION
- // THIS ALLOWS THAT YOU CAN MOVE THE WINDOW/FORM EVERYWHERE ON YOUR SCREEN!
- private void Form2_MouseDown(object sender, MouseEventArgs e)
- {
- mouseLocation = new Point(-e.X, -e.Y);
- }
- private void Form2_MouseMove(object sender, MouseEventArgs e)
- {
- if (e.Button == MouseButtons.Left)
- {
- Point mousePose = Control.MousePosition;
- mousePose.Offset(mouseLocation.X, mouseLocation.Y);
- Location = mousePose;
- //▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃▃
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement