private void button2_Click(object sender, EventArgs e) { double x; x = Convert.ToDouble(textBox1.Text); clima cl = clima.getInstance(); cl.colocartemperatura(Convert.ToDouble(textBox1.Text)); }
public static clima getInstance() { if (instance == null) { instance = new clima(); } return(instance); }
private void button1_Click(object sender, EventArgs e) { clima cl = clima.getInstance(); label1.Text = cl.obtenertemp(); }