public FormToDisplayTable(DataTable dt, cGlobalInfo GlobalInfo) { InitializeComponent(); this.dt = dt; this.dataGridViewForTable.DataSource = dt; this.GlobalInfo = GlobalInfo; }
public FormForSingleCellsDisplay(DataTable dt, cGlobalInfo GlobalInfo) { InitializeComponent(); this.dt = dt; this.GlobalInfo = GlobalInfo; // this.dataGridViewForTable.DataSource = dt; }
public FormForManualClustering(cGlobalInfo GlobalInfo) { InitializeComponent(); this.GlobalInfo = GlobalInfo; WellClassSelectionPanel = new PanelForClassSelection(true, eClassType.WELL); WellClassSelectionPanel.SelectAll(); WellClassSelectionPanel.Height = tabPageWellClasses.Height; tabPageWellClasses.Controls.Add(WellClassSelectionPanel); HitClassPanel = new PanelForClassSelection(false, eClassType.WELL); HitClassPanel.Height = panelForHitClass.Height; HitClassPanel.UnSelectAll(); HitClassPanel.Select(1); panelForHitClass.Controls.Add(HitClassPanel); NonHitClassPanel = new PanelForClassSelection( false, eClassType.WELL); NonHitClassPanel.Height = panelForNonHitClass.Height; NonHitClassPanel.UnSelectAll(); NonHitClassPanel.Select(0); panelForNonHitClass.Controls.Add(NonHitClassPanel); PlatesSelectionPanel = new PanelForPlatesSelection(true, null, true); PlatesSelectionPanel.Height = tabPageWellClasses.Height; PlatesSelectionPanel.Width = tabPageWellClasses.Width; TabPagePlates.Controls.Add(PlatesSelectionPanel); }
public FormForClusteringInfo(List<string> ListDescriptors, cGlobalInfo GlobalInfo) { InitializeComponent(); this.GlobalInfo = GlobalInfo; this.treeViewForOptions.SelectedNode = this.treeViewForOptions.Nodes[0]; ListClusteringAlgo = new cListClusteringAlgo(ListDescriptors); }
public FormForSwapClasses(cGlobalInfo GlobalInfo) { InitializeComponent(); comboBoxDestinationClass.SelectedIndex = 0; comboBoxOriginalClass.SelectedIndex = 0; this.GlobalInfo = GlobalInfo; }
public PanelForWellClassesColor(cGlobalInfo GlobalInfo) { InitializeComponent(); this.panelForWellClasses.Controls.Add(new PanelForClassEditing(GlobalInfo)); //Controls.Add(new PanelForClassEditing(this)); //panelForCellularPhenotypes.Controls.Add(new PanelForPhenotypeEditing(this)); }
public cDisplayTable(string Title, string[] ColumnNames, List<string[]> Values, cGlobalInfo GlobalInfo, bool IsMINE) { this.Text = Title; this.TableValues = new DataTable(); this.dataGridViewForTable.Columns.Clear(); foreach (string Name in ColumnNames) { this.TableValues.Columns.Add(new DataColumn(Name, typeof(string))); } //this.TableValues.Columns.Add(new DataColumn("", typeof(string))); //double[] Mins = new double[IsDisplayColorMap.Count]; //double[] Maxs = new double[IsDisplayColorMap.Count]; //for (int idx = 0; idx < Mins.Length; idx++) //{ // Mins[idx] = double.MaxValue; // Maxs[idx] = double.MinValue; //} for (int Row = 0; Row < Values.Count; Row++) { this.TableValues.Rows.Add(); for (int idxString = 0; idxString < Values[Row].Length; idxString++) { string CurrentString = Values[Row][idxString]; this.TableValues.Rows[Row][idxString] = CurrentString; } } this.dataGridViewForTable.DataSource = this.TableValues; this.Show(); if (IsMINE) { cLUT LUT = new cLUT(); for (int Row = 0; Row < Values.Count; Row++) { for (int idxString = 0; idxString < Values[Row].Length; idxString++) { string CurrentString = Values[Row][idxString]; if ((idxString == 2) || (idxString == 7)) { int ConvertedValue = (int)((LUT.LUT_GREEN_TO_RED[0].Length - 1) * Math.Abs(double.Parse(CurrentString))); Color Coul = Color.FromArgb(LUT.LUT_GREEN_TO_RED[0][ConvertedValue], LUT.LUT_GREEN_TO_RED[1][ConvertedValue], LUT.LUT_GREEN_TO_RED[2][ConvertedValue]); this.dataGridViewForTable.Rows[Row].Cells[idxString].Style.BackColor = Coul; this.dataGridViewForTable.Rows[Row].Cells[idxString].Style.ForeColor = Color.White; } } } } }
public UserControlSingleLUT(cImagePanel CurrentFormForImageDisplay, cSingleChannelImage AssociatedImageBand, int InitialIdx) { this.AssociatedImageBand = AssociatedImageBand; this.CurrentFormForImageDisplay = CurrentFormForImageDisplay; this.GlobalInfo = CurrentFormForImageDisplay.GlobalInfo; this.SelectedLUT = ListLUT.LUT_LINEAR; InitializeComponent(); if (InitialIdx == 0) { this.MaxColorForLinear = Color.FromArgb(255, 255, 0, 0); } else if (InitialIdx == 1) { this.MaxColorForLinear = Color.FromArgb(255, 0, 255, 0); } else if (InitialIdx == 2) { this.MaxColorForLinear = Color.FromArgb(255, 0, 0, 255); } else { this.MaxColorForLinear = Color.FromArgb(255, 255, 0, 0); } UpDateLinearLUT(); comboBoxForLUT.Text = "Linear "; UpDateColorSampleImage(); AssociatedImageBand.UpDateMin(); AssociatedImageBand.UpDateMax(); // this.numericUpDownMinValue.ValueChanged -= new EventHandler(numericUpDownMinValue_ValueChanged); this.numericUpDownMinValue.Value = (decimal)AssociatedImageBand.Min; this.numericUpDownMinValue.ValueChanged += new EventHandler(numericUpDownMinValue_ValueChanged); // this.numericUpDownMaxValue.ValueChanged -= new EventHandler(numericUpDownMaxValue_ValueChanged); this.numericUpDownMaxValue.Value = (decimal)AssociatedImageBand.Max; this.numericUpDownMaxValue.ValueChanged += new EventHandler(numericUpDownMaxValue_ValueChanged); this.trackBarOpacity.ValueChanged += new System.EventHandler(this.trackBarOpacity_ValueChanged); this.checkBoxIsActive.CheckedChanged += new System.EventHandler(this.checkBoxIsActive_CheckedChanged); this.comboBoxForLUT.SelectedIndexChanged += new System.EventHandler(this.comboBoxForLUT_SelectedIndexChanged); this.trackBarGamma.ValueChanged += new System.EventHandler(this.trackBarGamma_ValueChanged); this.comboBoxForLUT.SelectedValueChanged += new System.EventHandler(this.comboBoxForLUT_SelectedValueChanged); this.pictureBoxForColorSample.DoubleClick += new System.EventHandler(this.pictureBoxForColorSample_DoubleClick); this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.UserControlSingleLUT_MouseDown); this.toolStripMenuItemGammaDefault.Click += new System.EventHandler(this.toolStripMenuItemGammaDefault_Click); this.textBoxForName.TextChanged += new System.EventHandler(this.textBoxForName_TextChanged); this.BringToFront(); }
public FormForClassificationInfo(cGlobalInfo GlobalInfo) { InitializeComponent(); this.GlobalInfo = GlobalInfo; this.GeneratedKernel = new RBFKernel(); ((RBFKernel)this.GeneratedKernel).setGamma(1.0); ListClassificationAlgo = new cListClassificationAlgo(this); this.treeViewForOptions.ExpandAll(); this.treeViewForOptions.SelectedNode = this.treeViewForOptions.Nodes[0].Nodes[0]; this.treeViewForOptions.SelectedNode.EnsureVisible(); //scroll if necessary this.treeViewForOptions.SelectedNode.Checked = true; // this.treeViewForOptions.Focus(); }
public FormForPanelFilterHits(cGlobalInfo GlobalInfo) { InitializeComponent(); foreach (var item in cGlobalInfo.CurrentScreening.ListDescriptors) { if (item.IsActive()) this.comboBoxForDescName.Items.Add(item.GetName()); } foreach (var item in cGlobalInfo.CurrentScreening.ListWellPropertyTypes) { this.comboBoxForPropertyName.Items.Add(item.Name); } //this.comboBoxForDescName.SelectedText = this.comboBoxForDescName.Items[0].ToString(); }
public PanelForClassEditing(cGlobalInfo GlobalInfo) { this.GlobalInfo = GlobalInfo; this.Changed += new ChangedEventHandler(PanelForClassEditing_Changed); int NumClass = cGlobalInfo.ListWellClasses.Count; this.Height = cGlobalInfo.OptionsWindow.panelForWellClasses.Height; this.AutoScroll = true; this.MouseDown += new System.Windows.Forms.MouseEventHandler(this.PanelForClassSelection_MouseDown); ListTextBoxes = new List<System.Windows.Forms.TextBox>(); ListPanelColor = new List<System.Windows.Forms.Panel>(); for (int IdxClass = 0; IdxClass < NumClass; IdxClass++) { System.Windows.Forms.Panel PanelForColor = new System.Windows.Forms.Panel(); PanelForColor.Width = 13; PanelForColor.Height = 13; PanelForColor.BackColor = cGlobalInfo.ListWellClasses[IdxClass].ColourForDisplay; PanelForColor.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; PanelForColor.Location = new System.Drawing.Point(5, PanelForColor.Height * IdxClass-2); PanelForColor.Tag = IdxClass; PanelForColor.MouseDoubleClick += new System.Windows.Forms.MouseEventHandler(this.MouseDoubleClick); ListPanelColor.Add(PanelForColor); System.Windows.Forms.TextBox CurrentTextBox = new System.Windows.Forms.TextBox(); CurrentTextBox.Text = cGlobalInfo.ListWellClasses[IdxClass].Name;// "Class " + IdxClass; ListToolTips.Add(new System.Windows.Forms.ToolTip()); ListToolTips[IdxClass].SetToolTip(CurrentTextBox, CurrentTextBox.Text); //System.Windows.Forms.ToolTip TT = new System.Windows.Forms.ToolTip(); //TT.SetToolTip(CurrentTextBox, CurrentTextBox.Text); CurrentTextBox.Location = new System.Drawing.Point(PanelForColor.Width+15, (CurrentTextBox.Height+5) * IdxClass); CurrentTextBox.TextChanged += new EventHandler(CurrentTextBox_TextChanged); CurrentTextBox.Tag = IdxClass; ListTextBoxes.Add(CurrentTextBox); PanelForColor.Location = new System.Drawing.Point(5, CurrentTextBox.Location.Y+5); } this.Controls.AddRange(ListPanelColor.ToArray()); this.Controls.AddRange(ListTextBoxes.ToArray()); }
public FormForGenerateScreening(cGlobalInfo GlobalInfo) { InitializeComponent(); this.GlobalInfo = GlobalInfo; ToolTip toolTip1 = new ToolTip(); // Set up the delays for the ToolTip. toolTip1.AutoPopDelay = 5000; toolTip1.InitialDelay = 1000; toolTip1.ReshowDelay = 500; toolTip1.ShowAlways = true; // Set up the ToolTip text for the Button and Checkbox. toolTip1.SetToolTip(this.checkBoxStandardDeviation, "Step: " + GlobalInfo.OptionsWindow.numericUpDownGenerateScreenNoiseStdDev.Value); toolTip1.SetToolTip(this.checkBoxShiftRowEffect, "Step: " + GlobalInfo.OptionsWindow.numericUpDownGenerateScreenRowEffectShift.Value); toolTip1.SetToolTip(this.checkBoxRatioXY, "Step: " + GlobalInfo.OptionsWindow.numericUpDownGenerateScreenRatioXY.Value); toolTip1.SetToolTip(this.checkBoxEdgeEffectIteration, "Step: " + GlobalInfo.OptionsWindow.numericUpDownGenerateScreenDiffusion.Value); }
public FormSingleCellClusteringInfo(cGlobalInfo GlobalInfo) { InitializeComponent(); ToolTip toolTip1 = new ToolTip(); // Set up the delays for the ToolTip. toolTip1.AutoPopDelay = 5000; toolTip1.InitialDelay = 1000; toolTip1.ReshowDelay = 500; toolTip1.ShowAlways = true; // Set up the ToolTip text for the Button and Checkbox. toolTip1.SetToolTip(this.labelDescForClass, "Choose a descriptor that contains the class of the objects."); // toolTip1.SetToolTip(this.labelNeutralClass, "Define (if necessary !) a class value that not be taken into account for the learning process."); toolTip1.SetToolTip(this.radioButtonAutomated, "The object classes will be evaluated automatically."); toolTip1.SetToolTip(this.radioButtonDescriptorBased, "One descriptor represents already the object class."); foreach (var item in GlobalInfo.CheckedListBoxForDescActive.Items) { this.comboBoxDescriptorForClass.Items.Add(item); } }
public FormForHistogramScreen(cGlobalInfo GlobalInfo) { this.GlobalInfo = GlobalInfo; InitializeComponent(); if (GlobalInfo.CurrentScreen == null) this.checkBoxAddAsDescriptor.Enabled = false; FormForVariability WindowAveragePop1 = new FormForVariability(); AverageVariabilityWindows.Add(WindowAveragePop1); FormForVariability WindowAveragePop2 = new FormForVariability(); AverageVariabilityWindows.Add(WindowAveragePop2); FormForVariability WindowStdevPop1 = new FormForVariability(); StDevVariabilityWindows.Add(WindowStdevPop1); FormForVariability WindowStdevPop2 = new FormForVariability(); StDevVariabilityWindows.Add(WindowStdevPop2); FormForVariability WindowEventsPop1 = new FormForVariability(); EventsNumberVariabilityWindows.Add(WindowEventsPop1); FormForVariability WindowEventsPop2 = new FormForVariability(); EventsNumberVariabilityWindows.Add(WindowEventsPop2); }
public FormDendogram(cGlobalInfo GlobalInfo) { InitializeComponent(); this.GlobalInfo = GlobalInfo; }
public FormForHierarchical(cGlobalInfo GlobalInfo) { InitializeComponent(); this.GlobalInfo = GlobalInfo; }
public FormForDescFiltering(cGlobalInfo GlobalInfo) { InitializeComponent(); this.GlobalInfo = GlobalInfo; }
private void HCSAnalyzer_Load(object sender, EventArgs e) { //System.Threading.Thread thdWorker = new ... (MethodToCall); // System.Threading.Thread thdWorker = new System.Threading.Thread(MyLoad); // thdWorker.Start(); GlobalInfo = new cGlobalInfo(this); panelForTools.Controls.Add(cGlobalInfo.GUIPlateLUT.AssociatedPanel); this.comboBoxClass.Items.Add("Inactive"); foreach (var item in cGlobalInfo.ListWellClasses) { this.comboBoxClass.Items.Add(item.Name); //this.comboBoxClass.Items[this.comboBoxClass.Items.Count-1]. } // GlobalInfo.WindowName = this.Text; this.Text = cGlobalInfo.WindowName + " (Scalar Mode)"; cGlobalInfo.OptionsWindow.Visible = false; cGlobalInfo.ComboForSelectedDesc = this.comboBoxDescriptorToDisplay; cGlobalInfo.CheckedListBoxForDescActive = this.checkedListBoxActiveDescriptors; //new Kitware.VTK.RenderWindowControl novelRender = new RenderWindowControl cGlobalInfo.renderWindowControlForVTK = null;//renderWindowControlForVTK; PlateListWindow = new PlatesListForm(); cGlobalInfo.PlateListWindow = PlateListWindow; cGlobalInfo.panelForPlate = this.panelForPlate; comboBoxClass.SelectedIndex = 1; // CheckBox cb = new CheckBox(); //cb.Text = "test"; //cb.CheckStateChanged += (s, ex) => //this.Text = cb.CheckState.ToString(); //ToolStripControlHost host = new ToolStripControlHost(cb); //toolStrip1.Items.Insert(0,host); // this.toolStripMain.DataBindings.Add("Checked", this.checkBox1, "Checked"); checkBoxDisplayClasses.Text = "Display Class"; checkBoxDisplayClasses.Appearance = Appearance.Button; checkBoxDisplayClasses.FlatStyle = FlatStyle.Popup; checkBoxDisplayClasses.CheckedChanged += new EventHandler(checkBoxDisplayClasses_CheckedChanged); ToolStripControlHost host = new ToolStripControlHost(checkBoxDisplayClasses); toolStripMain.Items.Insert(0, host); checkBoxApplyTo_AllPlates.Text = "Apply to all plates"; checkBoxApplyTo_AllPlates.Appearance = Appearance.Button; checkBoxApplyTo_AllPlates.FlatStyle = FlatStyle.Popup; checkBoxApplyTo_AllPlates.Checked = true; checkBoxApplyTo_AllPlates.CheckedChanged += new EventHandler(checkBoxApplyTo_AllPlates_CheckedChanged); ToolStripControlHost hostcheckBoxApplyTo_AllPlates = new ToolStripControlHost(checkBoxApplyTo_AllPlates); toolStripMain.Items.Insert(3, hostcheckBoxApplyTo_AllPlates); ToolStripControlHost Host_TrackBarForZoom = new ToolStripControlHost(XTrackBarForZoom.panel); statusStripMain.Items.Insert(1, Host_TrackBarForZoom); // check command line arguments and process them if (System.Environment.GetCommandLineArgs().Length > 1) { List<string> LArg = new List<string>(); int FileMode = 0; foreach (string arg in System.Environment.GetCommandLineArgs()) { if (arg.ToLower() == "-todb") { FileMode = 1; } else { LArg.Add(System.Environment.GetCommandLineArgs()[1]); } } if (FileMode == 0) { FormForImportExcel CSVFeedBackWindow = LoadCSVAssay(LArg.ToArray(), false); if (CSVFeedBackWindow == null) return; if (CSVFeedBackWindow.ShowDialog() != System.Windows.Forms.DialogResult.OK) return; ProcessOK(CSVFeedBackWindow); UpdateUIAfterLoading(); return; } else if (FileMode == 1) { CSVtoDB(LArg[0],",",""); return; } } // delete the current Log file File.Delete("HCSA.log"); // this.BringToFront(); //MyLoad(); }
public FormForMultivariateScreen(cGlobalInfo GlobalInfo) { InitializeComponent(); this.GlobalInfo = GlobalInfo; UpDateDisplay(); }
private void HCSAnalyzer_Load(object sender, EventArgs e) { GlobalInfo = new cGlobalInfo(CompleteScreening, this); // GlobalInfo.WindowName = this.Text; this.Text = GlobalInfo.WindowName + String.Format("Version {0}", Assembly.GetExecutingAssembly().GetName().Version.ToString()) + " (Scalar Mode)"; GlobalInfo.OptionsWindow.Visible = false; GlobalInfo.ComboForSelectedDesc = this.comboBoxDescriptorToDisplay; GlobalInfo.CheckedListBoxForDescActive = this.checkedListBoxActiveDescriptors; //new Kitware.VTK.RenderWindowControl novelRender = new RenderWindowControl GlobalInfo.renderWindowControlForVTK = null;//renderWindowControlForVTK; MyConsole = new FormConsole(); MyConsole.Visible = false; PlateListWindow = new PlatesListForm(); GlobalInfo.PlateListWindow = PlateListWindow; GlobalInfo.panelForPlate = this.panelForPlate; comboBoxClass.SelectedIndex = 1; }
public FormForHistogramMode(cGlobalInfo GlobalInfo) { InitializeComponent(); this.GlobalInfo = GlobalInfo; }
private void HCSAnalyzer_Load(object sender, EventArgs e) { GlobalInfo = new cGlobalInfo(CompleteScreening); GlobalInfo.OptionsWindow.Visible = false; GlobalInfo.ComboForSelectedDesc = this.comboBoxDescriptorToDisplay; GlobalInfo.CheckedListBoxForDescActive = this.checkedListBoxActiveDescriptors; //new Kitware.VTK.RenderWindowControl novelRender = new RenderWindowControl GlobalInfo.renderWindowControlForVTK = null;//renderWindowControlForVTK; MyConsole = new FormConsole(); MyConsole.Visible = false; PlateListWindow = new PlatesListForm(); GlobalInfo.PlateListWindow = PlateListWindow; GlobalInfo.panelForPlate = this.panelForPlate; comboBoxClass.SelectedIndex = 1; }
public cOptionCellularPhenotypesColor(string Name, cGlobalInfo GlobalInfo) : base(Name) { PanelForCellularPhenotypesColor PanelForOption = new PanelForCellularPhenotypesColor(GlobalInfo); this.PanelToDisplay = PanelForOption.panel; }
public cOptionWellClassesColor(string Name, cGlobalInfo GlobalInfo) : base(Name) { PanelForWellClassesColor PanelForOption = new PanelForWellClassesColor(GlobalInfo); this.PanelToDisplay = PanelForOption.panel; }