/* * Carga ConsolidatedPage */ public void LoadConsolidatedPage(String name) { project.Association(GetDepartpentPath(name)); ConsolidatedPage = new ConsolidatedPage(this); ConsolidatedPage.SetDepartmentLabel(name); //load grid de harvestings LoadGridOfConsolidatedPage(); ConsolidatedPage.ShowDialog(); }
/* * Carga la pagina UserControl * crea las columnas de la tabla para el dataGridView y * carga la lista de los cultivos */ public void LoadPage(ConsolidatedPage consolidated, double lat, double lon) { ConsolidatedPage = consolidated; latitude = lat; longitude = lon; table = new DataTable(); table.Columns.Add(new DataColumn("Posicion", typeof(int))); table.Columns.Add(new DataColumn("Nombre", typeof(String))); table.Columns.Add(new DataColumn("Compatibilidad", typeof(double))); }