private static void OnChanged(object source, FileSystemEventArgs e) { previous = actual; // posúvam sa v čase actual = new ActualLogData(); if (actual.state) { if (actual.weight > ignoreMax && !isRecording) { initRecord(); } if (isRecording) { Achp.i.myVahaWrite(actual.weight, true); xml.add(actual); stopOnEscape(); } else { Achp.i.myVahaWrite(actual.weight, false); } } }
public void add(ActualLogData f) { _list.Add(f); }