Exemplo n.º 1
0
        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));
        }
Exemplo n.º 2
0
        public static clima getInstance()
        {
            if (instance == null)
            {
                instance = new clima();
            }

            return(instance);
        }
Exemplo n.º 3
0
        private void button1_Click(object sender, EventArgs e)
        {
            clima cl = clima.getInstance();

            label1.Text = cl.obtenertemp();
        }