You are on page 1of 20

using using using using using using using using

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

namespace WindowsFormsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void cmdsalir_Click(object sender, EventArgs e) { Close(); } private void cmdcuadrado_Click(object sender, EventArgs e) { cuadrado ncuadrado = new cuadrado(); ncuadrado.Show(); }

private void cmdrectangulo_Click(object sender, EventArgs e) { rectangulo nrectangulo = new rectangulo(); nrectangulo.Show(); } private void cmdcirculo_Click(object sender, EventArgs e) { circulo ncirculo = new circulo(); ncirculo.Show(); } private void cmdtrapcecio_Click(object sender, EventArgs e) { trapecio ntrapcecio = new trapecio(); ntrapcecio.Show(); } private void cmdtriangulo_Click(object sender, EventArgs e) { triangulo ntriangulo = new triangulo(); ntriangulo.Show(); } } }

using using using using using using using using

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

namespace WindowsFormsApplication1 { public partial class cuadrado : Form {

public cuadrado() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { Close(); } private void cmdarea_Click(object sender, EventArgs e) { areacuadrado nareacuadrado = new areacuadrado(); nareacuadrado.Show(); } private void cmdperimetro_Click(object sender, EventArgs e) { perimetrocuadrado nperimetrocuadrado = new perimetrocuadrado(); nperimetrocuadrado.Show(); } } }

using using using using using

System; System.Collections.Generic; System.ComponentModel; System.Data; System.Drawing;

using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication1 { public partial class areacuadrado : Form { public areacuadrado() { InitializeComponent(); } private void cmdrealizar_Click(object sender, EventArgs e) { float lado, area; lado=System.Int32.Parse(txtlado.Text); area = lado * lado; txtarea.Text = area.ToString(); } private void cmdlimpiar_Click(object sender, EventArgs e) { txtarea.Text = ""; txtlado.Text = ""; } private void cmdregresar_Click(object sender, EventArgs e) { Close(); } } }

using using using using using using using using

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

namespace WindowsFormsApplication1 { public partial class perimetrocuadrado : Form { public perimetrocuadrado() { InitializeComponent(); } private void cmdrealizar_Click(object sender, EventArgs e) { float lado, area; lado = System.Int32.Parse(txtlado.Text); area = lado * 4; txtarea.Text = area.ToString(); } private void cmdlimpiar_Click(object sender, EventArgs e) { txtarea.Text = ""; txtlado.Text = "";

} private void cmdregresar_Click(object sender, EventArgs e) { Close(); } } }

using using using using using using using using

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

namespace WindowsFormsApplication1 { public partial class rectangulo : Form { public rectangulo() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { Close(); } private void cmdarea_Click(object sender, EventArgs e) { arearectangulo narearectangulo = new arearectangulo(); narearectangulo.Show(); } private void cmdperimetro_Click(object sender, EventArgs e) {

perimetrorectangulo nperimetrorectangulo = new perimetrorectangulo(); nperimetrorectangulo.Show(); } } }

using using using using using using using using

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

namespace WindowsFormsApplication1 { public partial class arearectangulo : Form { public arearectangulo() { InitializeComponent(); } private void arearectangulo_Load(object sender, EventArgs e) { }

private void cmdoperacionrectangulo_Click(object sender, EventArgs e) { float altura,area, bbase; altura = System.Int32.Parse(txtalturarectangulo.Text); bbase = System.Int32.Parse(txtbaserectangulo.Text); area = (bbase * altura); txtarearectangulo.Text = area.ToString(); } private void cmdregresar_Click(object sender, EventArgs e) { Close(); } private void cmdlimpiar_Click(object sender, EventArgs e) { txtarearectangulo.Text = ""; txtalturarectangulo.Text = ""; txtbaserectangulo.Text = ""; } } }

using using using using using using

System; System.Collections.Generic; System.ComponentModel; System.Data; System.Drawing; System.Linq;

using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication1 { public partial class perimetrorectangulo : Form { public perimetrorectangulo() { InitializeComponent(); } private void cmdlimpiar_Click(object sender, EventArgs e) { txtarearectangulo.Text = ""; txtalturarectangulo.Text = ""; txtbaserectangulo.Text = ""; } private void cmdregresar_Click(object sender, EventArgs e) { Close(); } private void cmdoperacionrectangulo_Click(object sender, EventArgs e) { float altura, area, bbase; altura = System.Int32.Parse(txtalturarectangulo.Text); bbase = System.Int32.Parse(txtbaserectangulo.Text); area = (bbase * 2) + (altura * 2); txtarearectangulo.Text = area.ToString(); } } }

using System; using System.Collections.Generic; using System.ComponentModel;

using using using using using

System.Data; System.Drawing; System.Linq; System.Text; System.Windows.Forms;

namespace WindowsFormsApplication1 { public partial class circulo : Form { public circulo() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { Close(); } private void cmdarea_Click(object sender, EventArgs e) { areacirculo nareacirculo = new areacirculo(); nareacirculo.Show(); } private void cmdperimetro_Click(object sender, EventArgs e) { perimetrocirculo nperimetrocirculo = new perimetrocirculo(); nperimetrocirculo.Show(); } } }

using using using using using using using using

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

namespace WindowsFormsApplication1 { public partial class areacirculo : Form { public areacirculo() { InitializeComponent(); } private void cmdlimpiar_Click(object sender, EventArgs e) { txtarea.Text = ""; txtradio.Text = ""; } private void cmdregresar_Click(object sender, EventArgs e) { Close(); } private void cmdoperacion_Click(object sender, EventArgs e) {

double radio, area, pi; radio = System.Int32.Parse(txtradio.Text); pi = 3.1416; area = (radio * pi)*(radio*pi); txtarea.Text = area.ToString(); } } }

using using using using using using using using

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

namespace WindowsFormsApplication1 { public partial class perimetrocirculo : Form { public perimetrocirculo() { InitializeComponent(); }

private void cmdlimpiar_Click(object sender, EventArgs e) { txtarea.Text = ""; txtradio.Text = ""; } private void cmdregresar_Click(object sender, EventArgs e) { Close(); } private void cmdoperacion_Click(object sender, EventArgs e) { double radio, area, pi; radio = System.Int32.Parse(txtradio.Text); pi = 3.1416; area = (radio * 2) * pi; txtarea.Text = area.ToString(); } } }

using using using using using using using using

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

namespace WindowsFormsApplication1 { public partial class trapecio : Form { public trapecio()

{ InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { Close(); } private void cmdarea_Click(object sender, EventArgs e) { areatrapecio nareatrapcecio = new areatrapecio(); nareatrapcecio.Show(); } private void cmdperimetro_Click(object sender, EventArgs e) { perimetrotrapecio nperimetrotrapcecio = new perimetrotrapecio(); nperimetrotrapcecio.Show(); } } }

using using using using using

System; System.Collections.Generic; System.ComponentModel; System.Data; System.Drawing;

using System.Linq; using System.Text; using System.Windows.Forms; namespace WindowsFormsApplication1 { public partial class areatrapecio : Form { public areatrapecio() { InitializeComponent(); } private void areatrapecio_Load(object sender, EventArgs e) { } private void label5_Click(object sender, EventArgs e) { } private void cmdregresar_Click(object sender, EventArgs e) { Close(); } private void cmdlimpiar_Click(object sender, EventArgs e) { txtaltura.Text = ""; txtarea.Text = ""; txtbasemayor.Text = ""; txtbasemenor.Text = ""; } private void cdmoperacion_Click(object sender, EventArgs e) { float altura, area, basemayor, basemenor; altura = System.Int32.Parse(txtaltura.Text); basemayor = System.Int32.Parse(txtbasemayor.Text); basemenor = System.Int32.Parse(txtbasemenor.Text); area = (basemayor + basemenor) * altura / 2; txtarea.Text = area.ToString(); } } }

using using using using using using using using

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

namespace WindowsFormsApplication1 { public partial class perimetrotrapecio : Form { public perimetrotrapecio() { InitializeComponent(); } private void cmdlimpiar_Click(object sender, EventArgs e) { txtaltura.Text = ""; txtarea.Text = ""; txtbasemayor.Text = ""; txtbasemenor.Text = ""; } private void cmdregresar_Click(object sender, EventArgs e) {

Close(); } private void cdmoperacion_Click(object sender, EventArgs e) { float altura, area, basemayor, basemenor; altura = System.Int32.Parse(txtaltura.Text); basemayor = System.Int32.Parse(txtbasemayor.Text); basemenor = System.Int32.Parse(txtbasemenor.Text); area = (basemayor + basemenor + (altura*2)); txtarea.Text = area.ToString(); } } }

using using using using using using using using

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

namespace WindowsFormsApplication1 { public partial class triangulo : Form { public triangulo() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { Close(); } private void cmdarea_Click(object sender, EventArgs e)

{ areatriangulo nareatriangulo = new areatriangulo(); nareatriangulo.Show(); } private void cmdperimetro_Click(object sender, EventArgs e) { perimetrotriangulo nperimetrotriangulo = new perimetrotriangulo(); nperimetrotriangulo.Show(); } } }

using using using using using using using using

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

namespace WindowsFormsApplication1 { public partial class areatriangulo : Form { public areatriangulo()

{ InitializeComponent(); } private void cmddime_Click(object sender, EventArgs e) { float basebox, altura, area; basebox = System.Int32.Parse(txtbasebox.Text); altura = System.Int32.Parse(txtaltura.Text); area = altura * basebox / 2; txtarea.Text = area.ToString(); } private void button2_Click(object sender, EventArgs e) { txtbasebox.Text = ""; txtaltura.Text = ""; txtarea.Text = ""; } private void button3_Click(object sender, EventArgs e) { Close(); } } }

using using using using using using using using

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

namespace WindowsFormsApplication1 { public partial class perimetrotriangulo : Form { public perimetrotriangulo() { InitializeComponent(); } private void button2_Click(object sender, EventArgs e) { txtl1.Text = ""; txtl2.Text = ""; txtl3.Text = ""; txtperimetro.Text = ""; } private void button3_Click(object sender, EventArgs e) { Close(); } private void cmddime_Click(object sender, EventArgs e) { float lado1, lado2, lado3, perimetro; lado1 = System.Int32.Parse(txtl1.Text); lado2 = System.Int32.Parse(txtl2.Text); lado3 = System.Int32.Parse(txtl3.Text); perimetro = lado1 + lado2 + lado3; txtperimetro.Text = perimetro.ToString(); } } }

You might also like