private void menuItemMSMS_Click(object sender, EventArgs e) { if (mhtDatasets.ContainsKey("Expressions")) { MessageBox.Show("Expressions are already loaded.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); } else { var msmsWizard = new frmMSMSWizard(mRConnector); if (msmsWizard.ShowDialog(this) == DialogResult.OK) { var spectraData = msmsWizard.SpectralDT; AddDataset2HashTable(spectraData); if (spectraData.Rows.Count != 0) { AddDataNode(mhtDatasets["Expressions"]); } else { MessageBox.Show("No data matches your parameters", "No Data"); } } } }
private void menuItemMSMS_Click(object sender, EventArgs e) { if (mhtDatasets.ContainsKey("Expressions")) MessageBox.Show("Expressions are already loaded.", "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation); else { var msmsWizard = new frmMSMSWizard(mRConnector); if (msmsWizard.ShowDialog(this) == DialogResult.OK) { var mDTspectral = msmsWizard.SpectralDT; AddDataset2HashTable(mDTspectral); if (mDTspectral.Rows.Count != 0) { AddDataNode(mhtDatasets["Expressions"]); } else MessageBox.Show("No data matches your parameters", "No Data"); } } }