Et Musicorum Anguli
The Musicians Corner
SCREENSHOTS
VIDEO
CODES
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 LoginBoneng
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
if (textBox2.Text == "" || textBox3.Text == "")
{
MessageBox.Show("Provide User name and Password!");
return;
}
else
{
MessageBox.Show("Succesfully Logged in!");
this.Hide();
MainPageBoneng fm = new MainPageBoneng();
fm.Show();
}
}
}
}
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 LoginBoneng
{
public partial class MainPageBoneng : Form
{
public MainPageBoneng()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
if (textBox2.Text == "")
{
MessageBox.Show("Enter a number first!");
}
else
{
Double presyo = Convert.ToDouble(label6.Text);
Double qty = Convert.ToDouble(textBox2.Text);
Double tots = presyo * qty;
label7.Text = tots.ToString();
}
}
private void button2_Click(object sender, EventArgs e)
{
if (textBox2.Text == "0")
{
MessageBox.Show("Please Select Item first!");
}
else
{
listBox1.Items.Add(comboBox1.Text);
listBox2.Items.Add(label6.Text);
listBox3.Items.Add(textBox2.Text);
listBox4.Items.Add(label7.Text);
comboBox1.Text = "";
label6.Text = "_";
textBox2.Text = "0";
label7.Text = "_";
pictureBox1.Image = Properties.Resources.noimage;
}
}
private void button3_Click(object sender, EventArgs e)
{
comboBox1.Text = "";
label6.Text = "_";
textBox2.Text = "0";
label7.Text = "_";
pictureBox1.Image = Properties.Resources.noimage;
}
private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
if (comboBox1.Text == "1724 Strad with Corinthian Scroll")
{
label6.Text = "5495";
pictureBox1.Image = Properties.Resources.b1;
}
else if (comboBox1.Text == "1715 Stradivarius")
{
label6.Text = "7500";
pictureBox1.Image = Properties.Resources.b2;
}
else if (comboBox1.Text == "1743 Il Cannone Guarneri")
{
label6.Text = "4999";
pictureBox1.Image = Properties.Resources.b3;
}
else if (comboBox1.Text == "1732 Ferni Guarneri")
{
label6.Text = "8999";
pictureBox1.Image = Properties.Resources.b4;
}
else if (comboBox1.Text == "1742 Lord Wilton Guarneri")
{
label6.Text = "12000";
pictureBox1.Image = Properties.Resources.b5;
}
else if (comboBox1.Text == "STRADIVARIUS ca. 1719")
{
label6.Text = "6250";
pictureBox1.Image = Properties.Resources.b6;
}
else if (comboBox1.Text == "ANTONIUS STRADIVARIUS ca. 1717")
{
label6.Text = "9800";
pictureBox1.Image = Properties.Resources.b7;
}
else if (comboBox1.Text == "MATEO GOFFRILLER ca.1693")
{
label6.Text = "13395";
pictureBox1.Image = Properties.Resources.b8;
}
else if (comboBox1.Text == "NICOLAUS AMATUS ca. 1649")
{
label6.Text = "13000";
pictureBox1.Image = Properties.Resources.b9;
}
else if (comboBox1.Text == "GASPARO DA SALO ca. 1600")
{
label6.Text = "8300";
pictureBox1.Image = Properties.Resources.b10;
}
}
private void button4_Click(object sender, EventArgs e)
{
this.Hide();
Form1 fm = new Form1();
fm.Show();
}
}
}
PROFILE
Hi! My name Anna Yvonne L. Boseta. 16 years of age. I am a student in South Mansfield College and I am taking up the course of BSIT.(P.S:Sorry na! di ako mahilig magselfieeee!!)
No comments:
Post a Comment