private void BtnReset_Click(object sender, EventArgs e) { /* * double s; * s = 13.4562333333; * display(" "+ s.ToString("N"); * display(" " + s.ToString("F"); * //display(" " + s.ToString("D"); * display(" " + s.ToString("G"); */ try { //ws.temperature_indoor_reset(ws2300, WS2300base.RESET_MIN); //ws.temperature_indoor_reset(ws2300, WS2300base.RESET_MAX); ws2300.temperature_indoor_reset(WS2300base.RESET_MIN | WS2300base.RESET_MAX); Display("TEMP in min/max resetted"); ws2300.temperature_outdoor_reset(WS2300base.RESET_MIN | WS2300base.RESET_MAX); Display("TEMP out min/max resetted"); ws2300.humidity_indoor_reset(WS2300base.RESET_MIN | WS2300base.RESET_MAX); Display("HUM in min/max resetted"); ws2300.humidity_outdoor_reset(WS2300base.RESET_MIN | WS2300base.RESET_MAX); Display("HUM out min/max resetted"); ws2300.pressure_reset(WS2300base.RESET_MIN | WS2300base.RESET_MAX); Display("PRESSURE min/max resetted"); ws2300.rain_total_reset(); Display("RAIN total resetted"); } catch (Exception ex) { Display("ERROR: " + ex.Message); } Display(""); }