Login Codes
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication2
{
public partial class Login : Form
{
public Login()
{
InitializeComponent();
}
private void label2_Click(object sender, EventArgs e)
{
}
private void button1_Click(object sender, EventArgs e)
{
if (txtUsername.Text.Equals("Reimond") && txtPassword.Text.Equals("123"))
{
MessageBox.Show("Log in Succesful");
this.Hide();
MainMenu newForm = new MainMenu ();
newForm.Show();
}
else
{
MessageBox.Show("Log In Failed!PLease Contact the Admin");
}
}
}
}
Main Menu Codes
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication2
{
public partial class MainMenu : Form
{
public MainMenu()
{
InitializeComponent();
}
private void backgroundToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
Background newForm = new Background();
newForm.Show();
}
private void menuToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
Menu newForm = new Menu();
newForm.Show();
}
private void logoutToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
Login newForm = new Login();
newForm.Show();
}
}
}
Background Codes
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication2
{
public partial class Background : Form
{
public Background()
{
InitializeComponent();
}
private void logoutToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
Login newForm = new Login();
newForm.Show();
}
private void menuToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
Menu newForm = new Menu();
newForm.Show();
}
}
}
Menu Codes
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace WindowsApplication2
{
public partial class Menu : Form
{
public Menu()
{
InitializeComponent();
}
private void logoutToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
Login newForm = new Login();
newForm.Show();
}
private void menuToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
Background newForm = new Background();
newForm.Show();
}
private void button1_Click(object sender, EventArgs e)
{
Double a = Convert.ToDouble(txtQuantity.Text);
Double b = Convert.ToDouble(txtPrice.Text);
Double Total = a * b;
txtTotal.Text = Total.ToString();
}
private void button2_Click(object sender, EventArgs e)
{
this.Hide();
MainMenu newForm = new MainMenu();
newForm.Show();
}
private void pictureBox1_Click(object sender, EventArgs e)
{
txtName.Text = "Ala King Rice Bowl";
txtPrice.Text = "99.00";
}
private void pictureBox3_Click(object sender, EventArgs e)
{
txtName.Text = "1pc Fully Loaded Meal";
txtPrice.Text = "150.00";
}
private void pictureBox2_Click(object sender, EventArgs e)
{
txtName.Text = "Double Down G! Ala Carte";
txtPrice.Text = "130.00";
}
private void pictureBox4_Click(object sender, EventArgs e)
{
txtName.Text = "Fully Loaded Bucket of Fries";
txtPrice.Text = "150.00";
}
private void pictureBox5_Click(object sender, EventArgs e)
{
txtName.Text = "Spaghetti Fully Loaded Meal";
txtPrice.Text = "180.00";
}
private void button3_Click(object sender, EventArgs e)
{
txtName.Text = String.Empty;
txtPrice.Text = String.Empty;
txtQuantity.Text = String.Empty;
txtTotal.Text = String.Empty;
}
}
}
I am Reimond Weil Acabado. 18 yr old student studying in South Mansfield College currently in my 1st year taking BSIT. Nangmimicro ng lima nagmamahal ng isa. 💛💙💜💚❤️
Mondy kamusta kayo ni B.. HHHAHAHAAHA! Ni Cake mo? XD
ReplyDeleteGoing strong kame ni J <3
DeleteDeym boyz. Keep it up! ☺
Delete