Пример #1
0
        private void menuItemQRup_Click(object sender, EventArgs e)
        {
            var mclsSelected = (clsDatasetTreeNode)ctltreeView.SelectedNode.Tag;

            if (!ValidateTables(mclsSelected, "QRollup"))
            {
                return;
            }

            string dataset = mclsSelected.mstrRdatasetName;

            #region Hook Threading events
            m_BackgroundWorker.DoWork             += new DoWorkEventHandler(m_BackgroundWorker_QRollup);
            m_BackgroundWorker.RunWorkerCompleted += new RunWorkerCompletedEventHandler(
                m_BackgroundWorker_QRollupCompleted);
            #endregion

            mclsQRollupPar = new DAnTE.Purgatorio.clsQRollupPar
            {
                Rdataset    = mclsSelected.mstrRdatasetName,
                DataSetName = mclsSelected.mstrDataText
            };

            frmQRollupPar mfrmQRup = new frmQRollupPar(mclsQRollupPar);

            if (mhtDatasets.ContainsKey("Protein (Q)rollup"))
            {
                MessageBox.Show("Protein (Q)rollup is already done.", "Nothing to do", MessageBoxButtons.OK, MessageBoxIcon.Information);
                return;
            }

            if (mfrmQRup.ShowDialog() == DialogResult.OK)
            {
                mclsQRollupPar = mfrmQRup.clsQRollupPar;

                if (dataset != null)
                {
                    Add2AnalysisHTable(mclsQRollupPar, "QRollup");
                    string rcmd = mclsQRollupPar.Rcmd;

                    m_BackgroundWorker.RunWorkerAsync(rcmd);
                    mfrmShowProgress.Message = "QRollup: Rolling up to Proteins ...";
                    mfrmShowProgress.ShowDialog();
                }
            }

            #region Unhook Threading events
            m_BackgroundWorker.DoWork             -= new DoWorkEventHandler(m_BackgroundWorker_QRollup);
            m_BackgroundWorker.RunWorkerCompleted -= new RunWorkerCompletedEventHandler(
                m_BackgroundWorker_QRollupCompleted);
            #endregion
        }
Пример #2
0
 public frmQRollupPar(DAnTE.Purgatorio.clsQRollupPar mclsQRoll)
 {
     InitializeComponent();
     mclsQRollup = mclsQRoll;
 }
Пример #3
0
 public frmQRollupPar(DAnTE.Purgatorio.clsQRollupPar mclsQRoll)
 {
     InitializeComponent();
     mclsQRollup = mclsQRoll;
 }