public void DoChart2update(double[] sectionBuffers) { if (this.InvokeRequired) { Chart2Delegate delegateMethod = new Chart2Delegate(this.DoChart2update); this.Invoke(delegateMethod, new object[] { sectionBuffers }); } else { CreateFreqGraph(zedGraphControl2, sectionBuffers); } }
public void DoChart2update(double[] sectionBuffers) { try { if (this.InvokeRequired) { Chart2Delegate delegateMethod = new Chart2Delegate(this.DoChart2update); this.Invoke(delegateMethod, new object[] { sectionBuffers }); } else { CreateFreqGraph(zedGraphControl2, sectionBuffers); } } catch (Exception err) { _log.Error("Frequency domain Chart drawing Error message is---" + err.Message); MessageBox.Show(err.Message); } }