public void onReceiveResult(double val) { Stat stat = new Stat(); stat.setDate(DateTime.Now); stat.type = "microphone"; stat.vals = "[" + val + "]"; stat.experiment = -1; mainForm.temporaryStorage.add(stat); mainForm.Invoke(mainForm.webViewDelegate, new object[] { stat.type, stat.vals, stat.date }); }
public void add(Stat stat) { if (recording) { data.Add(stat); } }