Files
2025-01-29 11:24:40 +08:00

159 lines
4.2 KiB
C#

using System;
using System.Threading;
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 Org.BouncyCastle.Asn1.Ocsp;
using System.Diagnostics;
namespace MySQL_Database
{
public partial class signupForm : Form
{
MySqlConnector connectorSql = new MySqlConnector();
public signupForm()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void rtnBut_Click(object sender, EventArgs e)
{
studinfoForm infos = new studinfoForm();
this.Hide();
infos.Show();
}
private void panel1_Paint(object sender, PaintEventArgs e)
{
}
private void label1_Click(object sender, EventArgs e)
{
}
private void panel3_Paint(object sender, PaintEventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
string email = emailTextbox.Text;
string pass = passTextbox.Text;
connectorSql.LoginAccount(email, pass);
}
private void emailTextbox_TextChanged(object sender, EventArgs e)
{
}
private void passTextbox_TextChanged(object sender, EventArgs e)
{
}
private void exitButton_Click(object sender, EventArgs e)
{
var exitPrompt = MessageBox.Show("Do you want to close the application?", "Question", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if (exitPrompt == DialogResult.Yes)
{
Application.Exit();
}
}
private void guna2GradientPanel1_Paint(object sender, PaintEventArgs e)
{
}
private void panel_click(object sender, EventArgs e)
{
var visitka = MessageBox.Show("Do you want to visit official campus website?", "Information", MessageBoxButtons.YesNo, MessageBoxIcon.Information);
if (visitka == DialogResult.Yes)
{
Process.Start("https://plsp.edu.ph/");
}
}
private void signin_enterPressed(object sender, KeyPressEventArgs e)
{
}
private void passwordenter_clicked(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == (char)Keys.Enter)
{
button1_Click(null, null);
}
}
private void emailenter_clickedd(object sender, KeyPressEventArgs e)
{
if (e.KeyChar == (char)Keys.Enter)
{
if (string.IsNullOrEmpty(passTextbox.Text))
{
MessageBox.Show("Please type a password.", "try again.", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
}
else
{
button1_Click(null, null);
}
}
}
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
this.Hide();
activateaccount acac = new activateaccount();
acac.Show();
}
private void exitbutt_Clicked(object sender, EventArgs e)
{
var exitPrompt = MessageBox.Show("Do you want to close the application?", "Question", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if (exitPrompt == DialogResult.Yes)
{
Application.Exit();
}
}
private void guna2Panel1_Paint(object sender, PaintEventArgs e)
{
}
private void label4_Click(object sender, EventArgs e)
{
var exitPrompt = MessageBox.Show("Do you want to close the application?", "Question", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
if (exitPrompt == DialogResult.Yes)
{
Application.Exit();
}
}
private void emailTextbox_TextChanged_1(object sender, EventArgs e)
{
}
}
}