public void PlotQQ(clsQQPar clsQQPar) // this will be called from the plot forms. // thus the reason to be public { if (mDataTab.Controls.Count != 0) { #region Hook Threading Events m_BackgroundWorker.DoWork += m_BackgroundWorker_GeneratePlots; m_BackgroundWorker.RunWorkerCompleted += m_BackgroundWorker_QQPlotCompleted; #endregion var qqParams = new frmQQPar(clsQQPar); var res = qqParams.ShowDialog(); if (res == DialogResult.OK) { mclsQQPar = qqParams.clsQQPar; var qqPlot = new clsRplotData(clsQQPar.RCommand, "QQ"); m_BackgroundWorker.RunWorkerAsync(qqPlot); mProgressForm.Reset("Generating Q-Q Plots ..."); mProgressForm.ShowDialog(); } #region Unhook Threading Events m_BackgroundWorker.DoWork -= m_BackgroundWorker_GeneratePlots; m_BackgroundWorker.RunWorkerCompleted -= m_BackgroundWorker_QQPlotCompleted; #endregion } }
public void PlotQQ(clsQQPar clsQQPar) // this will be called from the plot forms. // thus the reason to be public { if (mtabControlData.Controls.Count != 0) { #region Hook Threading Events m_BackgroundWorker.DoWork += m_BackgroundWorker_GeneratePlots; m_BackgroundWorker.RunWorkerCompleted += m_BackgroundWorker_QQPlotCompleted; #endregion var mfrmQQPar = new frmQQPar(clsQQPar); var res = mfrmQQPar.ShowDialog(); if (res == DialogResult.OK) { mclsQQPar = mfrmQQPar.clsQQPar; var mclsRplots = new clsRplotData(clsQQPar.Rcmd, "QQ"); m_BackgroundWorker.RunWorkerAsync(mclsRplots); mfrmShowProgress.Message = "Generating Q-Q Plots ..."; mfrmShowProgress.ShowDialog(); } #region Unhook Threading Events m_BackgroundWorker.DoWork -= m_BackgroundWorker_GeneratePlots; m_BackgroundWorker.RunWorkerCompleted -= m_BackgroundWorker_QQPlotCompleted; #endregion } }
// this will be called from the plot forms. // thus the reason to be public public void PlotQQ(clsQQPar clsQQPar) { if (mtabControlData.Controls.Count != 0) { #region Hook Threading Events m_BackgroundWorker.DoWork += m_BackgroundWorker_GeneratePlots; m_BackgroundWorker.RunWorkerCompleted += m_BackgroundWorker_QQPlotCompleted; #endregion var mfrmQQPar = new frmQQPar(clsQQPar); var res = mfrmQQPar.ShowDialog(); if (res == DialogResult.OK) { mclsQQPar = mfrmQQPar.clsQQPar; var mclsRplots = new clsRplotData(clsQQPar.Rcmd, "QQ"); m_BackgroundWorker.RunWorkerAsync(mclsRplots); mfrmShowProgress.Message = "Generating Q-Q Plots ..."; mfrmShowProgress.ShowDialog(); } #region Unhook Threading Events m_BackgroundWorker.DoWork -= m_BackgroundWorker_GeneratePlots; m_BackgroundWorker.RunWorkerCompleted -= m_BackgroundWorker_QQPlotCompleted; #endregion } }