74 lines
1.8 KiB
C#
74 lines
1.8 KiB
C#
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;
|
|
|
|
namespace MySQL_Database
|
|
{
|
|
public partial class studinfoForm : Form
|
|
{
|
|
public studinfoForm()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void panel1_Paint(object sender, PaintEventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
private void pictureBox1_Click(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
private void pictureBox1_Click_1(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
private void button1_Click(object sender, EventArgs e)
|
|
{
|
|
this.Close();
|
|
addNewStudent add = new addNewStudent();
|
|
add.Show();
|
|
}
|
|
|
|
private void studinfoForm_Load(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
private void logoutButton_Click(object sender, EventArgs e)
|
|
{
|
|
this.Close();
|
|
signupForm signup = new signupForm();
|
|
|
|
var landingpage = MessageBox.Show("Do you want to logout?", "Question", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
|
|
if (landingpage == DialogResult.Yes)
|
|
{
|
|
signup.Show();
|
|
}
|
|
}
|
|
|
|
private void button3_Click(object sender, EventArgs e)
|
|
{
|
|
var exitPrompt = MessageBox.Show("Do you want to exit the application?", "Question", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
|
|
if (exitPrompt == DialogResult.Yes)
|
|
{
|
|
Application.Exit();
|
|
}
|
|
}
|
|
}
|
|
}
|