コード例 #1
0
        /// <summary>
        /// Calculate log Expressions
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void menuItemLogEset_Click(object sender, System.EventArgs e)
        {
            var selectedNodeTag = (clsDatasetTreeNode)ctlTreeView.SelectedNode.Tag;

            if (!ValidateNodeIsSelected(selectedNodeTag))
            {
                return;
            }

            if (!ValidateDataMatrixTableSelected(selectedNodeTag))
            {
                return;
            }

            #region Hook Threading events

            m_BackgroundWorker.DoWork             += m_BackgroundWorker_Log2;
            m_BackgroundWorker.RunWorkerCompleted += m_BackgroundWorker_Log2Completed;

            #endregion

            mLogTransformParams = new Purgatorio.clsLogTransformPar
            {
                RDataset    = selectedNodeTag.RDatasetName,
                DatasetName = selectedNodeTag.DataText
            };

            var logTransformParams = new frmLogPar(mLogTransformParams);

            var res = logTransformParams.ShowDialog();
            if (res == DialogResult.OK)
            {
                mLogTransformParams = logTransformParams.clsLogPar;
                Add2AnalysisHTable(mLogTransformParams, "LogTransform");

                var rCmd = mLogTransformParams.RCommand;

                m_BackgroundWorker.RunWorkerAsync(rCmd);
                mProgressForm.Reset("Calculating Log Expressions ...");
                mProgressForm.ShowDialog();
            }

            #region Unhook Threading events

            m_BackgroundWorker.DoWork             -= m_BackgroundWorker_Log2;
            m_BackgroundWorker.RunWorkerCompleted -= m_BackgroundWorker_Log2Completed;

            #endregion
        }
コード例 #2
0
        /// <summary>
        /// Calculate log Expressions
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void menuItemLogEset_Click(object sender, System.EventArgs e)
        {
            var mclsSelected = (clsDatasetTreeNode)ctltreeView.SelectedNode.Tag;

            if (!ValidateNodeIsSelected(mclsSelected))
            {
                return;
            }

            if (!ValidateDataMatrixTableSelected(mclsSelected))
            {
                return;
            }

            #region Hook Threading events
            m_BackgroundWorker.DoWork             += m_BackgroundWorker_Log2;
            m_BackgroundWorker.RunWorkerCompleted += m_BackgroundWorker_Log2Completed;
            #endregion

            mclsLogPar = new Purgatorio.clsLogTransformPar
            {
                Rdataset    = mclsSelected.mstrRdatasetName,
                DatasetName = mclsSelected.mstrDataText
            };

            var mfrmLog = new frmLogPar(mclsLogPar);

            var res = mfrmLog.ShowDialog();
            if (res == DialogResult.OK)
            {
                mclsLogPar = mfrmLog.clsLogPar;
                Add2AnalysisHTable(mclsLogPar, "LogTransform");

                var rcmd = mclsLogPar.Rcmd;

                m_BackgroundWorker.RunWorkerAsync(rcmd);
                mfrmShowProgress.Message = "Calculating Log Expressions ...";
                mfrmShowProgress.ShowDialog();
            }
            #region Unhook Threading events
            m_BackgroundWorker.DoWork             -= m_BackgroundWorker_Log2;
            m_BackgroundWorker.RunWorkerCompleted -= m_BackgroundWorker_Log2Completed;
            #endregion
        }
コード例 #3
0
        /// <summary>
        /// Calculate log Expressions
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void menuItemLogEset_Click(object sender, System.EventArgs e)
        {
            var mclsSelected = (clsDatasetTreeNode)ctltreeView.SelectedNode.Tag;

            if (!ValidateNodeIsSelected(mclsSelected))
            {
                return;
            }

            if (!ValidateDataMatrixTableSelected(mclsSelected))
            {
                return;
            }

            #region Hook Threading events
            m_BackgroundWorker.DoWork += m_BackgroundWorker_Log2;
            m_BackgroundWorker.RunWorkerCompleted += m_BackgroundWorker_Log2Completed;
            #endregion

            mclsLogPar = new Purgatorio.clsLogTransformPar
            {
                Rdataset = mclsSelected.mstrRdatasetName,
                DatasetName = mclsSelected.mstrDataText
            };

            var mfrmLog = new frmLogPar(mclsLogPar);

            var res = mfrmLog.ShowDialog();
            if (res == DialogResult.OK)
            {
                mclsLogPar = mfrmLog.clsLogPar;
                Add2AnalysisHTable(mclsLogPar, "LogTransform");

                var rcmd = mclsLogPar.Rcmd;

                m_BackgroundWorker.RunWorkerAsync(rcmd);
                mfrmShowProgress.Message = "Calculating Log Expressions ...";
                mfrmShowProgress.ShowDialog();
            }
            #region Unhook Threading events
            m_BackgroundWorker.DoWork -= m_BackgroundWorker_Log2;
            m_BackgroundWorker.RunWorkerCompleted -= m_BackgroundWorker_Log2Completed;
            #endregion
        }
コード例 #4
0
 public frmLogPar(Purgatorio.clsLogTransformPar clsLogPar)
 {
     InitializeComponent();
     mclsLogParam = clsLogPar;
 }