예제 #1
0
        private void GeneratePCADescriptorItem(object sender, EventArgs e)
        {
            FormForPCAAxisGeneration WindowClassification = new FormForPCAAxisGeneration(CompleteScreening);
            //WindowClassification.buttonClassification.Text = "Process";
            WindowClassification.label1.Text = "Class of Interest";
            WindowClassification.Text = "PCA";
            WindowClassification.IsPCA = true;
            WindowClassification.numericUpDownNumberOfAxis.Maximum = CompleteScreening.GetNumberOfActiveDescriptor();

            //      if (WindowClassification.ShowDialog() != System.Windows.Forms.DialogResult.OK) return;

            cExtendPlateList PlatesToProcess = new cExtendPlateList();
            if (WindowClassification.radioButtonFromCurrentPlate.Checked)
                PlatesToProcess.Add(CompleteScreening.GetCurrentDisplayPlate());
            else
                PlatesToProcess = CompleteScreening.ListPlatesActive;

            WindowClassification.PlatesToProcess = PlatesToProcess;
            if (WindowClassification.ShowDialog() != System.Windows.Forms.DialogResult.OK) return;
        }
예제 #2
0
        private void GenerateLADDescriptorItem(object sender, EventArgs e)
        {
            FormForPCAAxisGeneration WindowClassification = new FormForPCAAxisGeneration(CompleteScreening);
            //WindowClassification.buttonClassification.Text = "Process";
            WindowClassification.label1.Text = "Neutral Class";
            WindowClassification.Text = "LDA";
            WindowClassification.IsPCA = false;
            WindowClassification.numericUpDownNumberOfAxis.Visible = false;
            WindowClassification.labelAxeNumber.Visible = false;
            //

            //      int NeutralClass = WindowClassification.comboBoxForNeutralClass.SelectedIndex;

            cExtendPlateList PlatesToProcess = new cExtendPlateList();
            if (WindowClassification.radioButtonFromCurrentPlate.Checked)
                PlatesToProcess.Add(CompleteScreening.GetCurrentDisplayPlate());
            else
                PlatesToProcess = CompleteScreening.ListPlatesActive;
            WindowClassification.PlatesToProcess = PlatesToProcess;

            if (WindowClassification.ShowDialog() != System.Windows.Forms.DialogResult.OK) return;
        }