public void clear() { if (!tchart.InvokeRequired) { for (int k = 0; k < dateArray.Length; k++) { dateArray[k] = byte.MaxValue; } } else { if (clearFunc == null) { clearFunc = new clearCallback(clear); } tchart.Invoke(clearFunc); } }
public void clear() { if (!tchart.InvokeRequired) { ArrayClear(); //if (pictureBox != null) //pictureBox.Image = null; } else { if (clearFunc == null) { clearFunc = new clearCallback(clear); } tchart.Invoke(clearFunc); } }