Tuesday, March 1, 2016

Santos, Lloyd Stephen E.

I am Stephen Lloyd E. Santos, taking up BSIT and South Mansfield College. Varsity and basketball.   Facebook.com/miniscaper  /  twitter.com/TheLloooyd














using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace System
{
    public partial class Form1: Form
    {
        public Form1 ()
        {
            InitializeComponent ();
        }

        private void btn_login_Click (object sender, EventArgs e)
        {
            if (txt_user1.Text == "Lloyd" && txt_pass1.Text == "143strawberry")
            {
                Main NEWFORM = new Main ();
                newform.Show ();
                this.Hide ();
            }
            else
            {
                MessageBox.Show ( "Retype accurately!", "INCORRECT INPUT", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
    }
}


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace System
{
    public partial class Main: Form
    {
        public Main ()
        {
            InitializeComponent ();
        }

        private void logoutToolStripMenuItem_Click (object sender, EventArgs e)
        {
            MessageBox.Show ( "You are now logging out ...", "Logging out", MessageBoxButtons.OK, MessageBoxIcon.Warning);
            NEWFORM form1 = new Form1 ();
            newform.Show ();
            this.Hide ();
        }

        private void kobeBryantToolStripMenuItem_Click (object sender, EventArgs e)
        {
            picbox1.Image = System.Properties.Resources.kobe;
            cbo_items.Text = "";
            cbo_items.Items.Clear ();
            cbo_items.Items.Add ( "Kobe X");
            cbo_items.Items.Add ( "Kobe IX");
            cbo_items.Items.Add ( "Kobe VIII");

            cbo_color.Text = "";
            lbl_price.Text = "";
            txt_qty.Text = "";
            lbl_total.Text = "";
        }

        private void kevinDurantToolStripMenuItem_Click (object sender, EventArgs e)
        {
            picbox1.Image = System.Properties.Resources.kevin;
            cbo_items.Text = "";
            cbo_items.Items.Clear ();
            cbo_items.Items.Add ( "KD VIII");
            cbo_items.Items.Add ( "KD VII");
            cbo_items.Items.Add ( "KD VI");

            cbo_color.Text = "";
            lbl_price.Text = "";
            txt_qty.Text = "";
            lbl_total.Text = "";
        }

        private void lebronJamesToolStripMenuItem_Click (object sender, EventArgs e)
        {
            picbox1.Image = System.Properties.Resources.lebron;
            cbo_items.Text = "";
            cbo_items.Items.Clear ();
            cbo_items.Items.Add ( "Lebron XIII");
            cbo_items.Items.Add ( "Lebron XII");
            cbo_items.Items.Add ( "Lebron XI");

            cbo_color.Text = "";
            lbl_price.Text = "";
            txt_qty.Text = "";
            lbl_total.Text = "";
        }

        private void btn_clear_Click (object sender, EventArgs e)
        {
            
            
            list1.Items.Clear ();
            list2.Items.Clear ();
            list3.Items.Clear ();
            list4.Items.Clear ();

            if (list1.Text == "" && list2.Text == "" && list3.Text == "" && list4.Text == "")
            {
                MessageBox.Show ( "Cart is empty now." "Emptying carts ...", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
        }

        private void btn_compute_Click (object sender, EventArgs e)
        {
            if (txt_qty.Text == "")
            {
                MessageBox.Show ( "Please specify a quantity.", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            
            Double a = Convert.ToDouble (lbl_price.Text);
            Double Convert.ToDouble b = (txt_qty.Text);
            Double c = a * b;
            lbl_total.Text c.ToString = ();
        }

        private void cbo1_SelectedIndexChanged (object sender, EventArgs e)
        {
            if (cbo_items.Text == "Kobe X")
            {
                lbl_price.Text = "12157.39";
                picbox1.Image = System.Properties.Resources.kobe10red;
                cbo_color.Text = "Red";
            }

            else if (cbo_items.Text == "Kobe IX")
            {
                lbl_price.Text = "4675.63";
                picbox1.Image = System.Properties.Resources.kobe9red;
                cbo_color.Text = "Red";
            }

            else if (cbo_items.Text == "Kobe VIII")
            {
                lbl_price.Text = "9679.06";
                picbox1.Image = System.Properties.Resources.kobe8red;
                cbo_color.Text = "Red";
            }

            else if (cbo_items.Text == "Lebron XI")
            {
                lbl_price.Text = "23380.03";
                picbox1.Image = System.Properties.Resources.lebron11red;
                cbo_color.Text = "Red";
            }

            else if (cbo_items.Text == "Lebron XII")
            {
                lbl_price.Text = "3740.41";
                picbox1.Image = System.Properties.Resources.lebron12red;
                cbo_color.Text = "Red";
            }

            else if (cbo_items.Text == "Lebron XIII")
            {
                lbl_price.Text = "9351.73";
                picbox1.Image = System.Properties.Resources.lebron13red;
                cbo_color.Text = "Red";
            }

            else if (cbo_items.Text == "KD VIII")
            {
                lbl_price.Text = "6546.07";
                picbox1.Image = System.Properties.Resources.kd8red;
                cbo_color.Text = "Red";
            }

            else if (cbo_items.Text == "KD VII")
            {
                lbl_price.Text = "8416.98";
                picbox1.Image = System.Properties.Resources.kd7red;
                cbo_color.Text = "Red";
            }

            else if (cbo_items.Text == "KD VI")
            {
                lbl_price.Text = "8416.51";
                picbox1.Image = System.Properties.Resources.kd6red;
                cbo_color.Text = "Red";
            }
        }

        private void btn_add_Click (object sender, EventArgs e)
        {
            if (cbo_items.Text == "")
            {
                MessageBox.Show ( "Please select an item first.", "Error!", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }

            Double a = Convert.ToDouble (lbl_total.Text);
            Double Convert.ToDouble b = (lbl_grand.Text);
            Double c = a + b;
            lbl_grand.Text c.ToString = ();
            Double d = Convert.ToDouble (txt_qty.Text);
            Double Convert.ToDouble = f (lbl_qty.Text);
            Double d + g = f;
            lbl_qty.Text g.ToString = ();
            list1.Items.Add (cbo_items.Text);
            list2.Items.Add (cbo_color.Text);
            list3.Items.Add (txt_qty.Text);
            list4.Items.Add (lbl_total.Text);
            

        }

        private void cbo_color_SelectedIndexChanged (object sender, EventArgs e)
        {
            if (cbo_items.Text == "Kobe X" && cbo_color.Text == "Red")
            {
                picbox1.Image = System.Properties.Resources.kobe10red;
            }

            else if (cbo_items.Text == "Kobe X" && cbo_color.Text == "Blue")
            {
                picbox1.Image = System.Properties.Resources.kobe10blue;
            }

            else if (cbo_items.Text == "Kobe X" && cbo_color.Text == "Green")
            {
                picbox1.Image = System.Properties.Resources.kobe10green;
            }

            else if (cbo_items.Text == "Kobe IX" && cbo_color.Text == "Red")
            {
                picbox1.Image = System.Properties.Resources.kobe9red;
            }

            else if (cbo_items.Text == "Kobe IX" && cbo_color.Text == "Blue")
            {
                picbox1.Image = System.Properties.Resources.kobe9blue;
            }

            else if (cbo_items.Text == "Kobe IX" && cbo_color.Text == "Green")
            {
                picbox1.Image = System.Properties.Resources.kobe9green;
            }

            else if (cbo_items.Text == "Kobe VIII" cbo_color.Text && == "Red")
            {
                picbox1.Image = System.Properties.Resources.kobe8red;
            }

            else if (cbo_items.Text == "Kobe VIII" cbo_color.Text && == "Blue")
            {
                picbox1.Image = System.Properties.Resources.kobe8blue;
            }

            else if (cbo_items.Text == "Kobe VIII" cbo_color.Text && == "Green")
            {
                picbox1.Image = System.Properties.Resources.kobe8green;
            }

            else if (cbo_items.Text == "KD VIII" cbo_color.Text && == "Red")
            {
                picbox1.Image = System.Properties.Resources.kd8red;
            }

            else if (cbo_items.Text == "KD VIII" cbo_color.Text && == "Blue")
            {
                picbox1.Image = System.Properties.Resources.kd8blue;
            }

            else if (cbo_items.Text == "KD VIII" cbo_color.Text && == "Green")
            {
                picbox1.Image = System.Properties.Resources.kd8green;
            }

            else if (cbo_items.Text == "KD VII" && cbo_color.Text == "Red")
            {
                picbox1.Image = System.Properties.Resources.kd7red;
            }

            else if (cbo_items.Text == "KD VII" && cbo_color.Text == "Blue")
            {
                picbox1.Image = System.Properties.Resources.kd7blue;
            }

            else if (cbo_items.Text == "KD VII" && cbo_color.Text == "Green")
            {
                picbox1.Image = System.Properties.Resources.kd7green;
            }

            else if (cbo_items.Text == "KD VI" && cbo_color.Text == "Red")
            {
                picbox1.Image = System.Properties.Resources.kd6red;
            }

            else if (cbo_items.Text == "KD VI" && cbo_color.Text == "Blue")
            {
                picbox1.Image = System.Properties.Resources.kd6blue;
            }

            else if (cbo_items.Text == "KD VI" && cbo_color.Text == "Green")
            {
                picbox1.Image = System.Properties.Resources.kd6green;
            }

            else if (cbo_items.Text == "Lebron XIII" && cbo_color.Text == "Red")
            {
                picbox1.Image = System.Properties.Resources.lebron13red;
            }

            else if (cbo_items.Text == "Lebron XIII" && cbo_color.Text == "Blue")
            {
                picbox1.Image = System.Properties.Resources.lebron13blue;
            }

            else if (cbo_items.Text == "Lebron XIII" && cbo_color.Text == "Green")
            {
                picbox1.Image = System.Properties.Resources.lebron13green;
            }

            else if (cbo_items.Text == "Lebron XII" && cbo_color.Text == "Red")
            {
                picbox1.Image = System.Properties.Resources.lebron12red;
            }

            else if (cbo_items.Text == "Lebron XII" && cbo_color.Text == "Blue")
            {
                picbox1.Image = System.Properties.Resources.lebron12blue;
            }

            else if (cbo_items.Text == "Lebron XII" && cbo_color.Text == "Green")
            {
                picbox1.Image = System.Properties.Resources.lebron12green;
            }

            else if (cbo_items.Text == "Lebron XI" && cbo_color.Text == "Red")
            {
                picbox1.Image = System.Properties.Resources.lebron11red;
            }

            else if (cbo_items.Text == "Lebron XI" && cbo_color.Text == "Blue")
            {
                picbox1.Image = System.Properties.Resources.lebron11blue;
            }

            else if (cbo_items.Text == "Lebron XI" && cbo_color.Text == "Green")
            {
                picbox1.Image = System.Properties.Resources.lebron11green;
            }
        }

        private void btn_purchase_Click (object sender, EventArgs e)
        {
            MessageBox.Show ( "Please input your name, address and contact number in order to complete the transaction." "Almost!", MessageBoxButtons.OK, MessageBoxIcon.Information);
            Fill NEWFORM fill = new ();
            newform.Show ();
            this.Hide ();
        }
    }
}


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace System
{
    public partial class Fill Form
    {
        public Fill ()
        {
            InitializeComponent ();
        }

        private void btn_purchase_Click (object sender, EventArgs e)
        {
            MessageBox.Show ( "Transaction complete! Thank you" txt_first.Text + + "" + "You are now being directed to the main login.", "Logging out ...", MessageBoxButtons.OK, MessageBoxIcon.Information);
            NEWFORM form1 = new Form1 ();
            newform.Show ();
            this.Hide ();
        }
    }
}

2 comments: