public static STClima getInstance() { if (instance == null) { instance = new STClima(); } return(instance); }
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(); }
private void BTNCOLTEMP_Click(object sender, EventArgs e) { STClima stclima = STClima.getInstance(); LBLRESULTADO.Text = Convert.ToString("Temperatura: " + stclima.ColocarTemp() + "°"); }