public void DoChart3update(double[] sectionBuffers) { if (this.InvokeRequired) { Chart3Delegate delegateMethod = new Chart3Delegate(this.DoChart3update); this.Invoke(delegateMethod, new object[] { sectionBuffers }); } else { CreateFreqMaxGraph(zedGraphControl3, sectionBuffers); } }
public void DoChart3update(double[] sectionBuffers) { try { if (this.InvokeRequired) { Chart3Delegate delegateMethod = new Chart3Delegate(this.DoChart3update); this.Invoke(delegateMethod, new object[] { sectionBuffers }); } else { CreateFreqMaxGraph(zedGraphControl3, sectionBuffers); } } catch (Exception err) { _log.Error("Time Max Chart drawing Error message is---" + err.Message); MessageBox.Show(err.Message); } }