private void ShowCalculationResult(TablesDump tablesDump)
        {
            var tablesServer = new LocalDataTableServer(tablesDump);

            var arg = new ConstructorArgument(TablesEditorForm.ArgDataTableServer, tablesServer);
            var resultDisplayForm = Context.Kernel.Get <TablesEditorForm>(arg);

            resultDisplayForm.Show();
        }
Пример #2
0
        public TablesDump GetAllOutputDataTables()
        {
            var tablesDump = new TablesDump();

            tablesDump.AddTable("Результат", Result.DataTable);
            tablesDump.AddTable("Результат", ResultEstimation.DataTable);

            var outputTables = new List <TableProcessing.Table>
            {
                CalcsHydro,
                CalcsMeteo,
                CoeffsTable,
                UserInputTable
            };

            outputTables.AddRange(customTables);

            outputTables
            .Select(t => t.DataTable)
            .ToList()
            .ForEach(t => tablesDump.AddTable("Розрахунки", t));

            return(tablesDump);
        }
        public LocalDataTableServer(TablesDump tablesDump)
        {
            this.tablesDump = tablesDump;

            tablesInfo = tablesDump.Schema;
        }