Form1.
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 abc_15
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void label1_Click(object sender, EventArgs e)
{
}
private void label7_Click(object sender, EventArgs e)
{
}
private void select_Click(object sender, EventArgs e)
{
Form2 f2 = new Form2();
f2.Show();
this.Hide();
}
private void reset_Click(object sender, EventArgs e)
{
textBox1.Text = textBox2.Text = textBox3.Text = textBox4.Text =
textBox5.Text = textBox6.Text = textBox7.Text = textBox8.Text =
"";
total.Text = "$0.00";
}
private void exit_Click(object sender, EventArgs e)
{
this.Close();
}
private void Form1_Load(object sender, EventArgs e)
{
Form2 f2 = new Form2();
total.Text = "$"+f2.val;
}
private void total_TextChanged(object sender, EventArgs e)
{
}
}
}
From2
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 abc_15
{
public partial class Form2 : Form
{
//Form1 f1 = new Form1();
double prev = 0;
public static double cost = 0;
double []a= { 232,654,765};
public double val
{
get { return cost; }
set { cost = value; }
}
public Form2()
{
InitializeComponent();
}
private void panel2_Paint(object sender, PaintEventArgs e)
{
}
private void checkBox2_CheckedChanged(object sender, EventArgs
e)
{
if (checkBox2.Checked != false)
{
if (checkBox1.Checked == true)
{
val += 30;
MessageBox.Show("" + cost);
}
else
{
MessageBox.Show("You need to select registration box too.");
checkBox2.Checked = false;
}
}
}
private void button1_Click(object sender, EventArgs e)
{
val = 0;
MessageBox.Show(""+val);
checkBox1.Checked = checkBox2.Checked = false;
}
private void button2_Click(object sender, EventArgs e)
{
Form1 f1 = new Form1();
f1.Show();
this.Close();
}
private void checkBox1_CheckedChanged(object sender, EventArgs
e)
{
if (checkBox1.Checked != false)
{
val += 895;
MessageBox.Show("" + val);
}
}
private void listBox1_SelectedIndexChanged(object sender,
EventArgs e)
{
if (checkBox1.Checked == true)
{
val -= prev;
prev = a[listBox1.SelectedIndex];
val += a[listBox1.SelectedIndex];
}
else
{
MessageBox.Show("You have to select registration first.");
}
}
}
}
visual studio Figure 7-64 Conference Options form Pendence Workshops Cordero Sale One E-commerce The Free Web...
visual studio please all the infirmation is in 3 pictures that ive already submited Programming Challenges 1. Conference Registration System Create an application that calculates the registration fees for a conference. The gen- eral conference registration fee is $895 per person. There is also an optional opening! night dinner with a keynote address for $30 per person. Additionally, the optional preconference workshops listed in Table 7-3 are available. Table 7-3 Optional preconference workshops Workshop Free Introduction to E-commerce $295 The...