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 hotel_menu
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void radioButton1_CheckedChanged(object sender, EventArgs e)
{
}
private void radioButton2_CheckedChanged(object sender, EventArgs e)
{
MessageBox.Show("Tea Price is 20 Rupees");
}
private void radioButton3_CheckedChanged(object sender, EventArgs e)
{
MessageBox.Show("Pizza Price is Rs 500");
}
private void button1_Click(object sender, EventArgs e)
{
int x=0;
if (checkBox2.Checked == true)
{
x += 60;
}
if (checkBox3.Checked == true)
{
x += 20;
}
if (checkBox4.Checked == true)
{
x += 600;
}
button1.Text = x.ToString();
}
private void checkBox2_CheckedChanged(object sender, EventArgs e)
{
MessageBox.Show("sandwitch is choosed");
}
private void checkBox3_CheckedChanged(object sender, EventArgs e)
{
MessageBox.Show("Tea is Choosed");
}
private void checkBox4_CheckedChanged(object sender, EventArgs e)
{
MessageBox.Show("Pizza is Choosed");
}
}
}
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 hotel_menu
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void radioButton1_CheckedChanged(object sender, EventArgs e)
{
}
private void radioButton2_CheckedChanged(object sender, EventArgs e)
{
MessageBox.Show("Tea Price is 20 Rupees");
}
private void radioButton3_CheckedChanged(object sender, EventArgs e)
{
MessageBox.Show("Pizza Price is Rs 500");
}
private void button1_Click(object sender, EventArgs e)
{
int x=0;
if (checkBox2.Checked == true)
{
x += 60;
}
if (checkBox3.Checked == true)
{
x += 20;
}
if (checkBox4.Checked == true)
{
x += 600;
}
button1.Text = x.ToString();
}
private void checkBox2_CheckedChanged(object sender, EventArgs e)
{
MessageBox.Show("sandwitch is choosed");
}
private void checkBox3_CheckedChanged(object sender, EventArgs e)
{
MessageBox.Show("Tea is Choosed");
}
private void checkBox4_CheckedChanged(object sender, EventArgs e)
{
MessageBox.Show("Pizza is Choosed");
}
}
}
No comments:
Post a Comment