Tuesday, March 1, 2016

Caluntad, Wayne Shanen

La Tua Auto


SCREEN SHOTS

LOGIN FIRST

CHOOSE BRAND OF CAR



ABOUT LA TUA AUTO

DIFFERENT BRAND OF CARS DISPLAY

CONTACT OF ADMIN

ADD TO CART YOUR CHOSEN CAR

CODES

Form 1

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 project_midterm
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void btnlogin_Click(object sender, EventArgs e)
        {
            string username = "wayne";
            string password = "1234";
            if (txtname.Text == username && txtpswd.Text == password)
            {
                this.Hide();
                Form2 form2 = new Form2 ();
                form2.Show();
            }
        }
    }
}



Form 2

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 project_midterm
{
    public partial class Form2 : Form
    {
        public Form2()
        {
            InitializeComponent();
        }

        private void comboBox2_SelectedIndexChanged(object sender, EventArgs e)
        {
            if (cbobrand.Text == "Audi")
            {
                lblname.Text = "Audi";
                lblprice.Text = "10,800,000";
                picbox.Image = Properties.Resources.audi;
            }
            else if (cbobrand.Text == "Aston Martin")
            {
                lblname.Text = "Aston Martin";
                lblprice.Text = "12,800,000";
                picbox.Image = Properties.Resources.astonmartin;
            }
            else if (cbobrand.Text == "Hyundai")
            {
                lblname.Text = "Hyundai";
                lblprice.Text = "1,348,000";
                picbox.Image = Properties.Resources.hyundai;
            }
            else if (cbobrand.Text == "Chevrolet")
            {
                lblname.Text = "Chevrolet";
                lblprice.Text = "3,218,888";
                picbox.Image = Properties.Resources.chevrolet;
            }
            else if (cbobrand.Text == "BMW")
            {
                lblname.Text = "BMW";
                lblprice.Text = "2,390,000";
                picbox.Image = Properties.Resources.bmw;
            }
            else if (cbobrand.Text == "Cadillac")
            {
                lblname.Text = "Cadillac";
                lblprice.Text = "1,200,000";
                picbox.Image = Properties.Resources.cadillac;
            }
            else if (cbobrand.Text == "Dodge")
            {
                lblname.Text = "Dodge";
                lblprice.Text = "3,450,000";
                picbox.Image = Properties.Resources.dodge;
            }
            else if (cbobrand.Text == "Ferrari")
            {
                lblname.Text = "Ferrari";
                lblprice.Text = "23,500,000";
                picbox.Image = Properties.Resources.ferrari;
            }
            else if (cbobrand.Text == "Hummer")
            {
                lblname.Text = "Hummer";
                lblprice.Text = "475,000";
                picbox.Image = Properties.Resources.hummer;
            }
            else if (cbobrand.Text == "Isuzu")
            {
                lblname.Text = "Isuzu";
                lblprice.Text = "1,188,000";
                picbox.Image = Properties.Resources.Isuzu;
            }
        }

        private void button2_Click(object sender, EventArgs e)
        {
            if (txtqty.Text == "")
            {
                MessageBox.Show("Enter Number first!");
            }
            else
            {
                Double presyo = Convert.ToDouble(lblprice.Text);
                Double qty = Convert.ToDouble(txtqty.Text);
                Double tots = presyo * qty;
                label10.Text = tots.ToString();
            }
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (txtqty.Text == "0")
            {
                MessageBox.Show("Please Select Item First!");
            }
            else
            Brands.Items.Add(lblname.Text);
            Price.Items.Add(lblprice.Text);
            Quantity.Items.Add(txtqty.Text);
            Total.Items.Add(label10.Text);
        }

        private void button3_Click(object sender, EventArgs e)
        {
            cbobrand.Text = "";
            lblname.Text = "----";
            lblprice.Text = "----";
            txtqty.Text = "";
            label10.Text = "----";
            picbox.Image = Properties.Resources._27_128;

            
            Brands.Items.Clear();
            Price.Items.Clear();
            Quantity.Items.Clear();
            Total.Items.Clear();
        }

        private void Brands_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void lOGOUTToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Hide();
            Form4 fm = new Form4();
            fm.Show();
        }

        private void cONTACTToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            this.Hide();
            Form3 f3 = new Form3();
            f3.Show();
        }

        private void cONTACTToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Hide();
            Form5 f5 = new Form5();
            f5.Show();
        }

        private void pRODUCTSToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Hide();
            Form1 f1 = new Form1();
            f1.Show();
        }
    }
}


Form 3


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 project_midterm
{
    public partial class Form3 : Form
    {
        public Form3()
        {
            InitializeComponent();
        }

        private void label1_Click(object sender, EventArgs e)
        {

        }

        private void lOGOUTToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Hide();
            Form4 fm = new Form4();
            fm.Show();
        }

        private void cONTACTToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            this.Hide();
            Form3 f3 = new Form3();
            f3.Show();
        }

        private void cONTACTToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Hide();
            Form5 f5 = new Form5();
            f5.Show();
        }

        private void pRODUCTSToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Hide();
            Form1 f1 = new Form1();
            f1.Show();
        }
    }
}


Form 4


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 project_midterm
{
    public partial class Form4 : Form
    {
        public Form4()
        {
            InitializeComponent();
        }

        private void cONTACTToolStripMenuItem1_Click(object sender, EventArgs e)
        {

        }

        private void hOMEToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Hide();
            Form2 f = new Form2();
            f.Show();
        }
    }
}


Form 5


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 project_midterm
{
    public partial class Form5 : Form
    {
        public Form5()
        {
            InitializeComponent();
        }

        private void hOMEToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Hide();
            Form2 f5 = new Form2();
            f5.Show();
        }
    }
}

VIDEO




PROFILE


My name is Wayne Shanen Caluntad, 18, freshmen, taking up the course of Bachelor of Science in Information Technology at South Mansfield College.


No comments:

Post a Comment