Пример #1
0
 public static STClima getInstance()
 {
     if (instance == null)
     {
         instance = new STClima();
     }
     return(instance);
 }
Пример #2
0
        private void BTNOBTEMP_Click(object sender, EventArgs e)
        {
            STClima ob = STClima.getInstance();

            LBLRESULTADO.Text = null;
            double a;

            a = Convert.ToDouble(txtleer.Text);
            ob.ObtenerTemp(a);
            LBLRESULTADO.Text = "Obtenido";
            txtleer.Clear();
        }
Пример #3
0
        private void BTNCOLTEMP_Click(object sender, EventArgs e)
        {
            STClima stclima = STClima.getInstance();

            LBLRESULTADO.Text = Convert.ToString("Temperatura: " + stclima.ColocarTemp() + "°");
        }