Example #1
0
        public void AddTableRow()
        {
            dataTable.AddTableRow(TableRowType.InputDataRow);
            var data = TempDataHolder.PartialTempFileHolder;
            Dictionary <int, string> newDic = new Dictionary <int, string>();
            string str = "";

            newDic.Add(0, str);
            newDic.Add(1, str);
            newDic.Add(2, str);
            data.Add(newDic);
            dataTable.InsertTableData(newDic, TableRowType.InputDataRow);
        }
Example #2
0
        private void PopInfoTable_AmountOfRowsChanged(object sender, EventArgsRowsAmount e)
        {
            int currRows = genetictable.GetGeneticTableAmountOfRows();

            if (currRows < e.AmountOfRows && e.AmountOfRows > 0)
            {
                //add rows
                var deltaInRows = e.AmountOfRows - currRows;
                genetictable.AddTableRow(deltaInRows, TableRowType.GeneticDataRow);
            }
            else if (currRows > e.AmountOfRows && e.AmountOfRows > 0)
            {
                //delete rows
                var deltaInRows = currRows - e.AmountOfRows;
                genetictable.DeleteTableRow(deltaInRows);
            }
        }