Beispiel #1
0
 public static STClima getInstance()
 {
     if (instance == null)
     {
         instance = new STClima();
     }
     return(instance);
 }
Beispiel #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();
        }
Beispiel #3
0
        private void BTNCOLTEMP_Click(object sender, EventArgs e)
        {
            STClima stclima = STClima.getInstance();

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