Informatica
{
public partial class frm_calculadora : Form
{
bool operacion = true;
string operaciones;
double numero1;
doublenumero2;
double resultado;
double guardamemoria;
double resp;
double numborrar;
public frm_calculadora()
{
InitializeComponent();
}private void tb_Normal_Click(object sender, EventArgs e)
{
panel1.Visible = true;
this.Size = new System.Drawing.Size(330, 389);panel2.Visible = false;
}
private void tb_programador_Click(object sender, EventArgs e)
{
this.Size = new System.Drawing.Size(572, 459);panel2.Visible = false;
panel1.Visible = true;
panel2.Visible = true;
}
private void b_1_Click(object sender, EventArgs e)
{if (operacion)
{
txt_resultado.Text = "";
txt_resultado.Text = "1";
operacion = false;
}
else{
txt_resultado.Text = txt_resultado.Text + "1";
}
}
private void b_2_Click(object sender, EventArgs e)
{
if (operacion){
txt_resultado.Text = "";
txt_resultado.Text = "2";
operacion = false;
}
else
{txt_resultado.Text = txt_resultado.Text + "2";
}
}
private void b_3_Click(object sender, EventArgs e)
{
if (operacion)
{txt_resultado.Text = "";
txt_resultado.Text = "3";
operacion = false;
}
else
{
txt_resultado.Text...
Regístrate para leer el documento completo.