Esempio n. 1
0
        private void SaveTable()
        {
            DataTable table = ForestryViewer.GetTable();

            if (table == null)
            {
                return;
            }

            for (int i = 0; i < ForestryModel.Table[1].Count; i++)
            {
                for (int j = 2; j < table.Columns.Count + 1; j++)
                {
                    ForestryModel.Table[j][i] = table.Rows[i].Field <string>(j - 1);
                }
            }
        }