void m_BackgroundWorker_HeatMapCompleted(object sender, RunWorkerCompletedEventArgs e) { var mfrmHmapDisplay = new frmHeatmapDisplay(mclsHeatmapPar); mfrmShowProgress.Hide(); mfrmShowProgress.DialogResult = DialogResult.Cancel; if (e.Error != null) { MessageBox.Show(e.Error.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } else if (e.Cancelled) { Console.WriteLine("Canceled"); } else { var mclsPlotResult = (clsPlotResult)e.Result; mfrmHmapDisplay.Image = mclsPlotResult.mImage; mfrmHmapDisplay.PlotName = mclsPlotResult.mstrPlotName; mfrmHmapDisplay.DAnTEinstance = this; mfrmHmapDisplay.MdiParent = m_frmDAnTE.MdiParent; mfrmHmapDisplay.Title = "Heatmap"; mfrmHmapDisplay.Show(); if (doClust) { if (mhtDatasets.ContainsKey("Heatmap Clusters")) AddDataNode(mhtDatasets["Heatmap Clusters"]); } } }
void m_BackgroundWorker_HeatMapCompleted(object sender, RunWorkerCompletedEventArgs e) { var heatmapDisplay = new frmHeatmapDisplay(mHeatmapOptions); mProgressForm.Hide(); mProgressForm.DialogResult = DialogResult.Cancel; if (e.Error != null) { MessageBox.Show(e.Error.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } else if (e.Cancelled) { Console.WriteLine("Cancelled"); } else { var heatmapResult = (clsPlotResult)e.Result; heatmapDisplay.Image = heatmapResult.mImage; heatmapDisplay.PlotName = heatmapResult.mstrPlotName; heatmapDisplay.DAnTEinstance = this; heatmapDisplay.MdiParent = m_frmDAnTE.MdiParent; heatmapDisplay.Title = "Heatmap"; heatmapDisplay.Show(); if (mDoClustering) { if (mhtDatasets.ContainsKey("Heatmap Clusters")) { AddDataNode(mhtDatasets["Heatmap Clusters"]); } } } }
void m_BackgroundWorker_HeatMapCompleted(object sender, RunWorkerCompletedEventArgs e) { clsPlotResult mclsPlotResult; frmHeatmapDisplay mfrmHmapDisplay = new frmHeatmapDisplay(mclsHeatmapPar); mfrmShowProgress.Close(); mfrmShowProgress.DialogResult = DialogResult.Cancel; if (e.Error != null) { MessageBox.Show(e.Error.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } else if (e.Cancelled) { Console.WriteLine("Canceled"); } else { mclsPlotResult = (clsPlotResult)e.Result; mfrmHmapDisplay.Image = mclsPlotResult.mImage; mfrmHmapDisplay.PlotName = mclsPlotResult.mstrPlotName; mfrmHmapDisplay.DAnTEinstance = this; mfrmHmapDisplay.MdiParent = m_frmDAnTE.MdiParent; mfrmHmapDisplay.Title = "Heatmap"; mfrmHmapDisplay.Show(); if (doClust) { if (mhtDatasets.Contains("Heatmap Clusters")) { AddDataNode((clsDatasetTreeNode)mhtDatasets["Heatmap Clusters"]); } } } }