Algoritmos Computacionales
Codificacion 1control de boletas
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button2_Click(object sender,EventArgs e)
{
Form2 f2 = new Form2();
f2.Show();
}
private void precio_Click(object sender, EventArgs e)
{
Form3 f3 = newForm3();
f3.Show();
}
private void button3_Click(object sender, EventArgs e)
{
Form4 f4 = new Form4();
f4.Show();
}
}}
Codificacion form2
namespace WindowsFormsApplication1
{
public partial class Form2 : Form
{
public Form2()
{
InitializeComponent();
}private void ag_Click(object sender, EventArgs e)
{
t3.Text = Convert.ToString(Convert.ToDouble(t2.Text) * 0.19);
st.Text = "IGV calculado";
}private void button1_Click_1(object sender, EventArgs e)
{
t4.Text = Convert.ToString(Convert.ToDouble(t2.Text) + Convert.ToDouble(t3.Text));
st.Text ="Total incluyendo IGV calculado";
}
private void t1_TextChanged(object sender, EventArgs e)
{
}
}
}
Codificación numero 3
namespaceWindowsFormsApplication1
{
public partial class Form3 : Form
{
public Form3()
{
InitializeComponent();
}
private void bo_Click(object sender, EventArgs e){
pre.Clear();
}
private void Sel_Click(object sender, EventArgs e)
{
string n;
n = nomb.SelectedIndex.ToString();...
Regístrate para leer el documento completo.