Esempio n. 1
0
 public FormManualGating( FormForSingleCellsDisplay Sender)
 {
     InitializeComponent();
     this.Sender = Sender;
 }
        private void buttonDisplayWellsSelectionData_Click(object sender, EventArgs e)
        {
            DataTable FinalDataTable = new DataTable();

            //foreach (cWell TmpWell in GlobalInfo.ListSelectedWell)
            for(int IdxWell =0;IdxWell<GlobalInfo.ListSelectedWell.Count;IdxWell++)
            {
                cWell TmpWell = GlobalInfo.ListSelectedWell[IdxWell];
                if (TmpWell.AssociatedPlate.DBConnection == null)
                {
                    MessageBox.Show("No Database connection.", "Error !", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    return;
                }
                if (IdxWell == 0)
                    FinalDataTable = TmpWell.GetDescDataTable(true);
                else
                {
                    DataTable TmpTable = TmpWell.GetDescDataTable(true);
                    if (TmpTable != null)
                    {
                        if (FinalDataTable == null) FinalDataTable = new DataTable();
                        foreach (DataRow TmpRow in TmpTable.Rows)
                        {
                            FinalDataTable.Rows.Add();

                            for (int IdxColumn = 0; IdxColumn < TmpTable.Columns.Count; IdxColumn++)
                                FinalDataTable.Rows[FinalDataTable.Rows.Count - 1][IdxColumn] = (double)TmpRow[IdxColumn];

                            //FinalDataTable.Rows.Add(item);
                        }
                    }
                }
            }

            if (FinalDataTable == null) return;
            FormForSingleCellsDisplay WindowForTable = new FormForSingleCellsDisplay(FinalDataTable, GlobalInfo);

            for (int IdxCol = 0; IdxCol < FinalDataTable.Columns.Count ; IdxCol++)
            {

                WindowForTable.comboBoxAxeX.Items.Add(FinalDataTable.Columns[IdxCol].ColumnName);
                WindowForTable.comboBoxAxeY.Items.Add(FinalDataTable.Columns[IdxCol].ColumnName);

            }

            WindowForTable.Text = GlobalInfo.ListSelectedWell.Count + " selected wells - " + FinalDataTable.Rows.Count + " points.";// Well.AssociatedPlate.Name + " [" + Well.GetPosX() + "x" + Well.GetPosY() + "]";

            WindowForTable.Show();
        }
Esempio n. 3
0
 public FormForSubPopulationId(FormForSingleCellsDisplay Parent)
 {
     InitializeComponent();
     this.Parent = Parent;
 }