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 MidtermRacelis
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
}
private void button3_Click(object sender, EventArgs e)
{
if (textBox1.Text == "" || textBox2.Text == "")
{
MessageBox.Show("Please provide User name and Password :)");
return;
}
else
{
MessageBox.Show("Login Successful! :)");
this.Hide();
RacelisMidterm fm = new RacelisMidterm();
fm.Show();
}
}
}
}
Main Page
public partial class RacelisMidterm : Form
{
public RacelisMidterm()
{
InitializeComponent();
}
private void logoutToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
Form1 fm = new Form1();
fm.Show();
}
private void homeToolStripMenuItem_Click(object sender, EventArgs e)
{
}
private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
About fm = new About();
fm.Show();
}
private void romanceToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
RomanceTeenFiction fm = new RomanceTeenFiction();
fm.Show();
}
private void pictureBox9_Click(object sender, EventArgs e)
{
}
private void fantasyToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
FantasyScienceFiction fm = new FantasyScienceFiction();
fm.Show();
}
private void thrillerHorrorToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
ThrillerHorror fm = new ThrillerHorror();
fm.Show();
}
private void actionAdventireToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
ActionAdventure fm = new ActionAdventure();
fm.Show();
}
private void poetryToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
Poetry fm = new Poetry();
fm.Show();
}
private void whatsNewToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
Whatsnew fm = new Whatsnew();
fm.Show();
}
private void bestSellersToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
BestSellers fm = new BestSellers();
fm.Show();
}
private void contactToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
Contact fm = new Contact();
fm.Show();
}
private void button3_Click(object sender, EventArgs e)
{
this.Hide();
Whatsnew fm = new Whatsnew();
fm.Show();
}
private void button4_Click(object sender, EventArgs e)
{
this.Hide();
BestSellers fm = new BestSellers();
fm.Show();
}
}
}
What's New Page
public partial class Whatsnew : Form
{
public Whatsnew()
{
InitializeComponent();
}
private void homeToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
RacelisMidterm fm = new RacelisMidterm();
fm.Show();
}
private void whatsNewToolStripMenuItem_Click(object sender, EventArgs e)
{
}
private void bestSellersToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
BestSellers fm = new BestSellers();
fm.Show();
}
private void romanceTeenFictionToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
RomanceTeenFiction fm = new RomanceTeenFiction();
fm.Show();
}
private void fantasyScienceFictionToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
FantasyScienceFiction fm = new FantasyScienceFiction();
fm.Show();
}
private void thrillerHorrorToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
ThrillerHorror fm = new ThrillerHorror();
fm.Show();
}
private void actionAdventureToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
ActionAdventure fm = new ActionAdventure();
fm.Show();
}
private void poetryToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
Poetry fm = new Poetry();
fm.Show();
}
private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
About fm = new About();
fm.Show();
}
private void contactToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
Contact fm = new Contact();
fm.Show();
}
private void logoutToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
Form1 fm = new Form1();
fm.Show();
}
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
if (comboBox1.Text == "Go Set a Watchman")
{
label3.Text = "Harper Lee";
label5.Text = "495";
pictureBox9.Image = Properties.Resources.wn1;
}
else if (comboBox1.Text == "Station Eleven")
{
label3.Text = "Emily St. Jon-Mandel";
label5.Text = "395";
pictureBox9.Image = Properties.Resources.wn2;
}
else if (comboBox1.Text == "The Storied Life of A.J Fikry")
{
label3.Text = "Gabrille Zevin";
label5.Text = "350";
pictureBox9.Image = Properties.Resources.wn3;
}
else if (comboBox1.Text == "Stars Above")
{
label3.Text = "Marissa Meyer";
label5.Text = "475";
pictureBox9.Image = Properties.Resources.wn4;
}
else if (comboBox1.Text == "A Litte Life")
{
label3.Text = "Hanya Yanigahara";
label5.Text = "750";
pictureBox9.Image = Properties.Resources.wn5;
}
}
private void button2_Click(object sender, EventArgs e)
{
if (textBox1.Text == "")
{
MessageBox.Show("Enter a number first :)");
}
else
{
Double presyo = Convert.ToDouble(label5.Text);
Double qty = Convert.ToDouble(textBox1.Text);
Double tots = presyo * qty;
textBox2.Text = tots.ToString();
}
}
private void button4_Click(object sender, EventArgs e)
{
if (textBox2.Text == "0")
{
MessageBox.Show("Please Select Item first :)");
}
else
{
Title.Items.Add(comboBox1.Text);
Author.Items.Add(label3.Text);
Price.Items.Add(label5.Text);
Quantity.Items.Add(textBox1.Text);
Total.Items.Add(textBox2.Text);
comboBox1.Text = "";
label3.Text = "_";
label5.Text = "_";
textBox1.Text = "";
textBox2.Text = "0";
pictureBox9.Image = Properties.Resources.noimage;
}
}
private void button3_Click(object sender, EventArgs e)
{
comboBox1.Text = "";
label3.Text = "_";
label5.Text = "_";
textBox1.Text = "";
textBox2.Text = "0";
pictureBox9.Image = Properties.Resources.noimage;
}
}
}
Best Seller Page
public partial class BestSellers : Form
{
public BestSellers()
{
InitializeComponent();
}
private void homeToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
RacelisMidterm fm = new RacelisMidterm();
fm.Show();
}
private void whatsNewToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
Whatsnew fm = new Whatsnew();
fm.Show();
}
private void bestSellersToolStripMenuItem_Click(object sender, EventArgs e)
{
}
private void romanceTeenFictionToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
RomanceTeenFiction fm = new RomanceTeenFiction();
fm.Show();
}
private void fantasyScienceFictionToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
FantasyScienceFiction fm = new FantasyScienceFiction();
fm.Show();
}
private void thrillerHorrorToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
ThrillerHorror fm = new ThrillerHorror();
fm.Show();
}
private void actionAdventureToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
ActionAdventure fm = new ActionAdventure();
fm.Show();
}
private void poetryToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
Poetry fm = new Poetry();
fm.Show();
}
private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
About fm = new About();
fm.Show();
}
private void contactToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
Contact fm = new Contact();
fm.Show();
}
private void logoutToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
Form1 fm = new Form1();
fm.Show();
}
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
if (comboBox1.Text == "The Lord of the Rings")
{
label3.Text = "J.R.R Tolkien";
label5.Text = "375";
pictureBox9.Image = Properties.Resources.bs1;
}
else if (comboBox1.Text == "The Little Prince")
{
label3.Text = "Antoine de Saint-Exupery";
label5.Text = "250";
pictureBox9.Image = Properties.Resources.bs2;
}
else if (comboBox1.Text == "The Catcher in the Rye")
{
label3.Text = "J.D Salinger";
label5.Text = "375";
pictureBox9.Image = Properties.Resources.bs3;
}
else if (comboBox1.Text == "The Alchemist")
{
label3.Text = "Paulo Coelho";
label5.Text = "499";
pictureBox9.Image = Properties.Resources.bs4;
}
else if (comboBox1.Text == "Anne of Green Gables")
{
label3.Text = "L.M Montgomery";
label5.Text = "250";
pictureBox9.Image = Properties.Resources.bs5;
}
}
private void button2_Click(object sender, EventArgs e)
{
if (textBox1.Text == "")
{
MessageBox.Show("Enter a number first :)");
}
else
{
Double presyo = Convert.ToDouble(label5.Text);
Double qty = Convert.ToDouble(textBox1.Text);
Double tots = presyo * qty;
textBox2.Text = tots.ToString();
}
}
private void button4_Click(object sender, EventArgs e)
{
if (textBox2.Text == "0")
{
MessageBox.Show("Please Select Item first :)");
}
else
{
Title.Items.Add(comboBox1.Text);
Author.Items.Add(label3.Text);
Price.Items.Add(label5.Text);
Quantity.Items.Add(textBox1.Text);
Total.Items.Add(textBox2.Text);
comboBox1.Text = "";
label3.Text = "_";
label5.Text = "_";
textBox1.Text = "";
textBox2.Text = "0";
pictureBox9.Image = Properties.Resources.noimage;
}
}
private void button3_Click(object sender, EventArgs e)
{
comboBox1.Text = "";
label3.Text = "_";
label5.Text = "_";
textBox1.Text = "";
textBox2.Text = "0";
pictureBox9.Image = Properties.Resources.noimage;
}
}
}
Romance and Teen Fiction
public partial class RomanceTeenFiction : Form
{
public RomanceTeenFiction()
{
InitializeComponent();
}
private void RomanceTeenFiction_Load(object sender, EventArgs e)
{
}
private void menuStrip1_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
{
}
private void homeToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
RacelisMidterm fm = new RacelisMidterm();
fm.Show();
}
private void logoutToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
Form1 fm = new Form1();
fm.Show();
}
private void pictureBox3_Click(object sender, EventArgs e)
{
}
private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
}
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
if (comboBox1.Text == "The Notebook")
{
label3.Text = "Nicholas Sparks";
label5.Text = "305";
pictureBox9.Image = Properties.Resources.rtf1;
}
else if (comboBox1.Text == "Fifty Shades of Grey")
{
label3.Text = "E.L James";
label5.Text = "465";
pictureBox9.Image = Properties.Resources.rtf2;
}
else if (comboBox1.Text == "Outlander")
{
label3.Text = "Diana Gabaldon";
label5.Text = "645";
pictureBox9.Image = Properties.Resources.rtf3;
}
else if (comboBox1.Text == "Pride and Prejudice")
{
label3.Text = "Jane Austen";
label5.Text = "305";
pictureBox9.Image = Properties.Resources.rtf4;
}
else if (comboBox1.Text == "The Fault in our Stars")
{
label3.Text = "John Green";
label5.Text = "395";
pictureBox9.Image = Properties.Resources.rtf5;
}
else if (comboBox1.Text == "Perks of Being a Wallflower")
{
label3.Text = "Stephen Chbosky";
label5.Text = "350";
pictureBox9.Image = Properties.Resources.rtf6;
}
else if (comboBox1.Text == "If I Stay")
{
label3.Text = "Gayle Forman";
label5.Text = "395";
pictureBox9.Image = Properties.Resources.rtf7;
}
else if (comboBox1.Text == "Eleanor & Park")
{
label3.Text = "Rainbow Rowell";
label5.Text = "405";
pictureBox9.Image = Properties.Resources.rtf8;
}
}
private void button2_Click(object sender, EventArgs e)
{
if (textBox1.Text == "")
{
MessageBox.Show("Enter a number first :)");
}
else
{
Double presyo = Convert.ToDouble(label5.Text);
Double qty = Convert.ToDouble(textBox1.Text);
Double tots = presyo * qty;
textBox2.Text = tots.ToString();
}
}
private void button4_Click(object sender, EventArgs e)
{
if (textBox2.Text == "0")
{
MessageBox.Show("Please Select Item first :)");
}
else
{
Title.Items.Add(comboBox1.Text);
Author.Items.Add(label3.Text);
Price.Items.Add(label5.Text);
Quantity.Items.Add(textBox1.Text);
Total.Items.Add(textBox2.Text);
comboBox1.Text = "";
label3.Text = "_";
label5.Text = "_";
textBox1.Text = "";
textBox2.Text = "0";
pictureBox9.Image = Properties.Resources.noimage;
}
}
private void button3_Click(object sender, EventArgs e)
{
comboBox1.Text = "";
label3.Text = "_";
label5.Text = "_";
textBox1.Text = "";
textBox2.Text = "0";
pictureBox9.Image = Properties.Resources.noimage;
}
private void whatsNewToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
Whatsnew fm = new Whatsnew();
fm.Show();
}
private void bestSellersToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
BestSellers fm = new BestSellers();
fm.Show();
}
private void romanceTeenFictionToolStripMenuItem_Click(object sender, EventArgs e)
{
}
private void fantasyScienceFictionToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
FantasyScienceFiction fm = new FantasyScienceFiction();
fm.Show();
}
private void thrillerHorrorToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
ThrillerHorror fm = new ThrillerHorror();
fm.Show();
}
private void actionAdventureToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
ActionAdventure fm = new ActionAdventure();
fm.Show();
}
private void poetryToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
Poetry fm = new Poetry();
fm.Show();
}
private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
About fm = new About();
fm.Show();
}
private void contactToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
Contact fm = new Contact();
fm.Show();
}
}
}
Fantasy and Science Fiction
public partial class FantasyScienceFiction : Form
{
public FantasyScienceFiction()
{
InitializeComponent();
}
private void Total_SelectedIndexChanged(object sender, EventArgs e)
{
}
private void homeToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
RacelisMidterm fm = new RacelisMidterm();
fm.Show();
}
private void whatsNewToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
Whatsnew fm = new Whatsnew();
fm.Show();
}
private void bestSellersToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
BestSellers fm = new BestSellers();
fm.Show();
}
private void romanceTeenFictionToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
RomanceTeenFiction fm = new RomanceTeenFiction();
fm.Show();
}
private void thrillerHorrorToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
ThrillerHorror fm = new ThrillerHorror();
fm.Show();
}
private void actionAdventureToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
ActionAdventure fm = new ActionAdventure();
fm.Show();
}
private void poetryToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
Poetry fm = new Poetry();
fm.Show();
}
private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
About fm = new About();
fm.Show();
}
private void contactToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
Contact fm = new Contact();
fm.Show();
}
private void logoutToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
Form1 fm = new Form1();
fm.Show();
}
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
if (comboBox1.Text == "Harry Potter Series")
{
label3.Text = "J.K Rowling";
label5.Text = "2500";
pictureBox9.Image = Properties.Resources.fcs1;
}
else if (comboBox1.Text == "Percy Jackson Series")
{
label3.Text = "Rick Riordan";
label5.Text = "1500";
pictureBox9.Image = Properties.Resources.fcs2;
}
else if (comboBox1.Text == "The Mortal Instruments Series")
{
label3.Text = "Cassandra Clare";
label5.Text = "2350";
pictureBox9.Image = Properties.Resources.fcs3;
}
else if (comboBox1.Text == "Daughters of Smoke and Bones")
{
label3.Text = "Laini Taylor";
label5.Text = "999";
pictureBox9.Image = Properties.Resources.fcs4;
}
else if (comboBox1.Text == "Hunger Games Trilogy")
{
label3.Text = "Suzzane Collins";
label5.Text = "750";
pictureBox9.Image = Properties.Resources.fcs5;
}
else if (comboBox1.Text == "Divergent Series")
{
label3.Text = "Veronica Roth";
label5.Text = "899";
pictureBox9.Image = Properties.Resources.fcs6;
}
else if (comboBox1.Text == "Lunar Chronicles")
{
label3.Text = "Marissa Meyer";
label5.Text = "645";
pictureBox9.Image = Properties.Resources.fcs7;
}
else if (comboBox1.Text == "The 5th Wave")
{
label3.Text = "Rick Yancey";
label5.Text = "405";
pictureBox9.Image = Properties.Resources.fcs8;
}
}
private void button2_Click(object sender, EventArgs e)
{
if (textBox1.Text == "")
{
MessageBox.Show("Enter a number first :)");
}
else
{
Double presyo = Convert.ToDouble(label5.Text);
Double qty = Convert.ToDouble(textBox1.Text);
Double tots = presyo * qty;
textBox2.Text = tots.ToString();
}
}
private void button4_Click(object sender, EventArgs e)
{
if (textBox2.Text == "0")
{
MessageBox.Show("Please Select Item first :)");
}
else
{
Title.Items.Add(comboBox1.Text);
Author.Items.Add(label3.Text);
Price.Items.Add(label5.Text);
Quantity.Items.Add(textBox1.Text);
Total.Items.Add(textBox2.Text);
comboBox1.Text = "";
label3.Text = "_";
label5.Text = "_";
textBox1.Text = "";
textBox2.Text = "0";
pictureBox9.Image = Properties.Resources.noimage;
}
}
private void button3_Click(object sender, EventArgs e)
{
comboBox1.Text = "";
label3.Text = "_";
label5.Text = "_";
textBox1.Text = "";
textBox2.Text = "0";
pictureBox9.Image = Properties.Resources.noimage;
}
}
}
Action and Adventure
public partial class ActionAdventure : Form
{
public ActionAdventure()
{
InitializeComponent();
}
private void homeToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
RacelisMidterm fm = new RacelisMidterm();
fm.Show();
}
private void whatsNewToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
Whatsnew fm = new Whatsnew();
fm.Show();
}
private void bestSellersToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
BestSellers fm = new BestSellers();
fm.Show();
}
private void genresToolStripMenuItem_Click(object sender, EventArgs e)
{
}
private void romanceTeenFictionToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
RomanceTeenFiction fm = new RomanceTeenFiction();
fm.Show();
}
private void fantasyScienceFictionToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
FantasyScienceFiction fm = new FantasyScienceFiction();
fm.Show();
}
private void thrillerHorrorToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
ThrillerHorror fm = new ThrillerHorror();
fm.Show();
}
private void poetryToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
Poetry fm = new Poetry();
fm.Show();
}
private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
About fm = new About();
fm.Show();
}
private void contactToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
Contact fm = new Contact();
fm.Show();
}
private void logoutToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
Form1 fm = new Form1();
fm.Show();
}
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
if (comboBox1.Text == "Six of Crows")
{
label3.Text = "Leigh Bardugo";
label5.Text = "375";
pictureBox9.Image = Properties.Resources.aa1;
}
else if (comboBox1.Text == "Graceling Realm")
{
label3.Text = "Kristin Cashore";
label5.Text = "395";
pictureBox9.Image = Properties.Resources.aa2;
}
else if (comboBox1.Text == "The Grisha Series")
{
label3.Text = "Leigh Bardugo";
label5.Text = "999";
pictureBox9.Image = Properties.Resources.aa3;
}
else if (comboBox1.Text == "The Girl of Fire and Thorns")
{
label3.Text = "James Morcan";
label5.Text = "999";
pictureBox9.Image = Properties.Resources.aa4;
}
else if (comboBox1.Text == "The Hobbit")
{
label3.Text = "J.R.R Tolkien";
label5.Text = "305";
pictureBox9.Image = Properties.Resources.aa5;
}
else if (comboBox1.Text == "Angels and Demons")
{
label3.Text = "Dan Brown";
label5.Text = "350";
pictureBox9.Image = Properties.Resources.aa6;
}
else if (comboBox1.Text == "The Three Musketeers")
{
label3.Text = "Alexandre DUmas";
label5.Text = "305";
pictureBox9.Image = Properties.Resources.aa7;
}
else if (comboBox1.Text == "Da Vinci Code")
{
label3.Text = "Dan Brown";
label5.Text = "385";
pictureBox9.Image = Properties.Resources.aa8;
}
}
private void button4_Click(object sender, EventArgs e)
{
if (textBox2.Text == "0")
{
MessageBox.Show("Please Select Item first :)");
}
else
{
Title.Items.Add(comboBox1.Text);
Author.Items.Add(label3.Text);
Price.Items.Add(label5.Text);
Quantity.Items.Add(textBox1.Text);
Total.Items.Add(textBox2.Text);
comboBox1.Text = "";
label3.Text = "_";
label5.Text = "_";
textBox1.Text = "";
textBox2.Text = "0";
pictureBox9.Image = Properties.Resources.noimage;
}
}
private void button3_Click(object sender, EventArgs e)
{
comboBox1.Text = "";
label3.Text = "_";
label5.Text = "_";
textBox1.Text = "";
textBox2.Text = "0";
pictureBox9.Image = Properties.Resources.noimage;
}
private void ActionAdventure_Load(object sender, EventArgs e)
{
}
private void button2_Click(object sender, EventArgs e)
{
if (textBox1.Text == "")
{
MessageBox.Show("Enter a number first :)");
}
else
{
Double presyo = Convert.ToDouble(label5.Text);
Double qty = Convert.ToDouble(textBox1.Text);
Double tots = presyo * qty;
textBox2.Text = tots.ToString();
}
}
}
}
Thriller and Horror
public partial class ThrillerHorror : Form
{
public ThrillerHorror()
{
InitializeComponent();
}
private void homeToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
RacelisMidterm fm = new RacelisMidterm();
fm.Show();
}
private void whatsNewToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
Whatsnew fm = new Whatsnew();
fm.Show();
}
private void bestSellersToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
BestSellers fm = new BestSellers();
fm.Show();
}
private void romanceTeenFictionToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
RomanceTeenFiction fm = new RomanceTeenFiction();
fm.Show();
}
private void fantasyScienceFictionToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
FantasyScienceFiction fm = new FantasyScienceFiction();
fm.Show();
}
private void actionAdventureToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
ActionAdventure fm = new ActionAdventure();
fm.Show();
}
private void poetryToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
Poetry fm = new Poetry();
fm.Show();
}
private void contactToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
Contact fm = new Contact();
fm.Show();
}
private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
About fm = new About();
fm.Show();
}
private void logoutToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
Form1 fm = new Form1();
fm.Show();
}
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
if (comboBox1.Text == "Chronicles of Narnia")
{
label3.Text = "C.S Lewis";
label5.Text = "560";
pictureBox9.Image = Properties.Resources.th1;
}
else if (comboBox1.Text == "The Knife of Never Letting Go")
{
label3.Text = "Patrick Ness";
label5.Text = "395";
pictureBox9.Image = Properties.Resources.th2;
}
else if (comboBox1.Text == "The Maze Runner")
{
label3.Text = "James Dashner";
label5.Text = "375";
pictureBox9.Image = Properties.Resources.th3;
}
else if (comboBox1.Text == "The Orphan Trilogy")
{
label3.Text = "James Morcan";
label5.Text = "999";
pictureBox9.Image = Properties.Resources.th4;
}
else if (comboBox1.Text == "Anna Dressed in Blood")
{
label3.Text = "Kendare Blake";
label5.Text = "475";
pictureBox9.Image = Properties.Resources.th5;
}
else if (comboBox1.Text == "Dollhouse")
{
label3.Text = "Anya Allyn";
label5.Text = "350";
pictureBox9.Image = Properties.Resources.th6;
}
else if (comboBox1.Text == "Miss Peregrines Home for Peculiar Children")
{
label3.Text = "Ransom Riggs";
label5.Text = "799";
pictureBox9.Image = Properties.Resources.th7;
}
else if (comboBox1.Text == "Asylum")
{
label3.Text = "Madeleine Roux";
label5.Text = "405";
pictureBox9.Image = Properties.Resources.th8;
}
}
private void button2_Click(object sender, EventArgs e)
{
if (textBox1.Text == "")
{
MessageBox.Show("Enter a number first :)");
}
else
{
Double presyo = Convert.ToDouble(label5.Text);
Double qty = Convert.ToDouble(textBox1.Text);
Double tots = presyo * qty;
textBox2.Text = tots.ToString();
}
}
private void button4_Click(object sender, EventArgs e)
{
if (textBox2.Text == "0")
{
MessageBox.Show("Please Select Item first :)");
}
else
{
Title.Items.Add(comboBox1.Text);
Author.Items.Add(label3.Text);
Price.Items.Add(label5.Text);
Quantity.Items.Add(textBox1.Text);
Total.Items.Add(textBox2.Text);
comboBox1.Text = "";
label3.Text = "_";
label5.Text = "_";
textBox1.Text = "";
textBox2.Text = "0";
pictureBox9.Image = Properties.Resources.noimage;
}
}
private void button3_Click(object sender, EventArgs e)
{
comboBox1.Text = "";
label3.Text = "_";
label5.Text = "_";
textBox1.Text = "";
textBox2.Text = "0";
pictureBox9.Image = Properties.Resources.noimage;
}
}
}
Poetry
public partial class Poetry : Form
{
public Poetry()
{
InitializeComponent();
}
private void homeToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
RacelisMidterm fm = new RacelisMidterm();
fm.Show();
}
private void whatsNewToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
Whatsnew fm = new Whatsnew();
fm.Show();
}
private void bestSellersToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
BestSellers fm = new BestSellers();
fm.Show();
}
private void romanceTeenFictionToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
RomanceTeenFiction fm = new RomanceTeenFiction();
fm.Show();
}
private void fantasyScienceFictionToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
FantasyScienceFiction fm = new FantasyScienceFiction();
fm.Show();
}
private void thrillerHorrorToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
ThrillerHorror fm = new ThrillerHorror();
fm.Show();
}
private void actionAdventureToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
ActionAdventure fm = new ActionAdventure();
fm.Show();
}
private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
About fm = new About();
fm.Show();
}
private void contactToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
Contact fm = new Contact();
fm.Show();
}
private void logoutToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
Form1 fm = new Form1();
fm.Show();
}
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
if (comboBox1.Text == "Love and Misadventure")
{
label3.Text = "Lang Leav";
label5.Text = "475";
pictureBox9.Image = Properties.Resources.p1;
}
else if (comboBox1.Text == "Lullabies")
{
label3.Text = "Lang Leav";
label5.Text = "500";
pictureBox9.Image = Properties.Resources.p2;
}
else if (comboBox1.Text == "Memories")
{
label3.Text = "Lang Leav";
label5.Text = "575";
pictureBox9.Image = Properties.Resources.p3;
}
else if (comboBox1.Text == "Dirty Pretty Things")
{
label3.Text = "Michael Faudet";
label5.Text = "495";
pictureBox9.Image = Properties.Resources.p4;
}
else if (comboBox1.Text == "Love and Other Small Wars")
{
label3.Text = "Donna Marie Riley";
label5.Text = "400";
pictureBox9.Image = Properties.Resources.p5;
}
}
private void button2_Click(object sender, EventArgs e)
{
if (textBox1.Text == "")
{
MessageBox.Show("Enter a number first :)");
}
else
{
Double presyo = Convert.ToDouble(label5.Text);
Double qty = Convert.ToDouble(textBox1.Text);
Double tots = presyo * qty;
textBox2.Text = tots.ToString();
}
}
private void button4_Click(object sender, EventArgs e)
{
if (textBox2.Text == "0")
{
MessageBox.Show("Please Select Item first :)");
}
else
{
Title.Items.Add(comboBox1.Text);
Author.Items.Add(label3.Text);
Price.Items.Add(label5.Text);
Quantity.Items.Add(textBox1.Text);
Total.Items.Add(textBox2.Text);
comboBox1.Text = "";
label3.Text = "_";
label5.Text = "_";
textBox1.Text = "";
textBox2.Text = "0";
pictureBox9.Image = Properties.Resources.noimage;
}
}
private void button3_Click(object sender, EventArgs e)
{
comboBox1.Text = "";
label3.Text = "_";
label5.Text = "_";
textBox1.Text = "";
textBox2.Text = "0";
pictureBox9.Image = Properties.Resources.noimage;
}
private void Title_SelectedIndexChanged(object sender, EventArgs e)
{
Checkout fm = new Checkout();
}
private void button5_Click(object sender, EventArgs e)
{
this.Hide();
Checkout fm = new Checkout();
fm.Show();
}
}
}
About Us Page
public partial class About : Form
{
public About()
{
InitializeComponent();
}
private void homeToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
RacelisMidterm fm = new RacelisMidterm();
fm.Show();
}
private void whatsNewToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
Whatsnew fm = new Whatsnew();
fm.Show();
}
private void bestSellersToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
BestSellers fm = new BestSellers();
fm.Show();
}
private void romanceTeenFictionToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
RomanceTeenFiction fm = new RomanceTeenFiction();
fm.Show();
}
private void fantasyScienceFictionToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
FantasyScienceFiction fm = new FantasyScienceFiction();
fm.Show();
}
private void thrillerHorrorToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
ThrillerHorror fm = new ThrillerHorror();
fm.Show();
}
private void actionAdventureToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
ActionAdventure fm = new ActionAdventure();
fm.Show();
}
private void poetryToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
Poetry fm = new Poetry();
fm.Show();
}
private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
{
}
private void contactToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
Contact fm = new Contact();
fm.Show();
}
private void logoutToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
Form1 fm = new Form1();
fm.Show();
}
}
}
Contact Us Page
public partial class Contact : Form
{
public Contact()
{
InitializeComponent();
}
private void Contact_Load(object sender, EventArgs e)
{
}
private void homeToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
RacelisMidterm fm = new RacelisMidterm();
fm.Show();
}
private void whatsNewToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
Whatsnew fm = new Whatsnew();
fm.Show();
}
private void bestSellersToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
BestSellers fm = new BestSellers();
fm.Show();
}
private void romanceTeenFictionToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
RomanceTeenFiction fm = new RomanceTeenFiction();
fm.Show();
}
private void fantasyScienceFictionToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
FantasyScienceFiction fm = new FantasyScienceFiction();
fm.Show();
}
private void thrillerHorrorToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
ThrillerHorror fm = new ThrillerHorror();
fm.Show();
}
private void actionAdventureToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
ActionAdventure fm = new ActionAdventure();
fm.Show();
}
private void poetryToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
Poetry fm = new Poetry();
fm.Show();
}
private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
About fm = new About();
fm.Show();
}
private void logoutToolStripMenuItem_Click(object sender, EventArgs e)
{
this.Hide();
Form1 fm = new Form1();
fm.Show();
}
}
}
Pipsqueeeaak fgt Hahahaha. 😂
ReplyDeleteBwiset ka Mond! #Cake :P
DeleteBwiset ka Mikmik! #Reirei :P
DeleteWushuuuuuu <3
ReplyDeleteWushuuuuuu <3
ReplyDelete