private void BtnMinMax_Click(object sender, EventArgs e) { double retmin, retmax; int retmini, retmaxi; WS2300base.timestamp timemin, timemax; retmin = -1; retmax = -1; retmini = -1; retmaxi = -1; timemin = new WS2300base.timestamp(); timemax = new WS2300base.timestamp(); try { ws2300.temperature_indoor_minmax(config.temperature_conv, ref retmin, ref retmax, ref timemin, ref timemax); Display("TEMP in min=" + retmin.ToString("F2") + Time(timemin)); Display("TEMP in max=" + retmax.ToString("F2") + Time(timemax)); ws2300.temperature_outdoor_minmax(config.temperature_conv, ref retmin, ref retmax, ref timemin, ref timemax); Display("TEMP out min=" + retmin.ToString("F2") + Time(timemin)); Display("TEMP out max=" + retmax.ToString("F2") + Time(timemax)); ws2300.humidity_indoor_all(ref retmini, ref retmaxi, ref timemin, ref timemax); Display("HUM in min=" + retmin.ToString("F2") + Time(timemin)); Display("HUM in max=" + retmax.ToString("F2") + Time(timemax)); ws2300.humidity_outdoor_all(ref retmini, ref retmaxi, ref timemin, ref timemax); Display("HUM out min=" + retmin.ToString("F2") + Time(timemin)); Display("HUM out max=" + retmax.ToString("F2") + Time(timemax)); ws2300.rel_pressure_minmax(config.pressure_conv_factor, ref retmin, ref retmax, ref timemin, ref timemax); Display("PRESS rel min=" + retmin.ToString("F2") + Time(timemin)); Display("PRESS rel max=" + retmax.ToString("F2") + Time(timemax)); } catch (Exception ex) { Display("ERROR: " + ex.Message); } Display(""); }