private void GenerateRandomProjectionDescriptorItem(object sender, EventArgs e) { FormForProjections WindowClassification = new FormForProjections(); //WindowClassification.buttonClassification.Text = "Process"; WindowClassification.label1.Text = "Class of Interest"; WindowClassification.Text = "Random Projection"; WindowClassification.IsPCA = true; WindowClassification.numericUpDownNumberOfAxis.Maximum = cGlobalInfo.CurrentScreening.GetNumberOfActiveDescriptor(); cListPlates PlatesToProcess = new cListPlates(); if (WindowClassification.radioButtonFromCurrentPlate.Checked) PlatesToProcess.Add(cGlobalInfo.CurrentScreening.GetCurrentDisplayPlate()); else PlatesToProcess = cGlobalInfo.CurrentScreening.ListPlatesActive; WindowClassification.PlatesToProcess = PlatesToProcess; if (WindowClassification.ShowDialog() != System.Windows.Forms.DialogResult.OK) return; }
private void GeneratePCADescriptorItem(object sender, EventArgs e) { FormForProjections WindowClassification = new FormForProjections(); //WindowClassification.buttonClassification.Text = "Process"; WindowClassification.label1.Text = "Class of Interest"; WindowClassification.Text = "PCA"; WindowClassification.IsPCA = true; WindowClassification.numericUpDownNumberOfAxis.Maximum = cGlobalInfo.CurrentScreening.GetNumberOfActiveDescriptor(); PanelForClassSelection ClassSelectionPanel = new PanelForClassSelection(true, eClassType.WELL); ClassSelectionPanel.Height = WindowClassification.panelForClasses.Height; ClassSelectionPanel.UnSelectAll(); ClassSelectionPanel.Select(2); WindowClassification.panelForClasses.Controls.Add(ClassSelectionPanel); cListPlates PlatesToProcess = new cListPlates(null); if (WindowClassification.radioButtonFromCurrentPlate.Checked) PlatesToProcess.Add(cGlobalInfo.CurrentScreening.GetCurrentDisplayPlate()); else PlatesToProcess = cGlobalInfo.CurrentScreening.ListPlatesActive; WindowClassification.PlatesToProcess = PlatesToProcess; if (WindowClassification.ShowDialog() != System.Windows.Forms.DialogResult.OK) return; }