private void initGui() { municipalities = capakey.getMunicipalities().municipalities; perceel = null; graphics = new List <IElement>(); gemeenteCbx.Items.Clear(); gemeenteCbx.Items.AddRange((from n in municipalities select n.municipalityName).ToArray()); }
public void initGui() { rows = new SortableBindingList<poiDataRow>(); resultGrid.DataSource = rows; dataHandler.capakey capa = new dataHandler.capakey(timeout: gpExtension.timeout); municipalities = capa.getMunicipalities(); List<string> cities = (from datacontract.municipality t in municipalities.municipalities orderby t.municipalityName select t.municipalityName).ToList(); cities.Insert(0, ""); gemeenteCbx.DataSource = cities; themes = poiDH.listThemes().categories; categories = poiDH.listCategories().categories; poiTypes = poiDH.listPOItypes().categories; populateFilters(); }
private void initGUI() { dataHandler.capakey capakey = new dataHandler.capakey(timeout: gpExtension.timeout); municipality = capakey.getMunicipalities(); var qry = from datacontract.municipality t in municipality.municipalities select t.municipalityName; //lists cities = qry.ToList(); cities.Insert(0, ""); List <string> provinces = new List <string>() { "Antwerpen", "Limburg", "Vlaams-Brabant", "Oost-Vlaanderen", "West-Vlaanderen" }; provinces.Insert(0, ""); List <string> owners = gipod.getReferencedata(dataHandler.gipodReferencedata.owner); owners.Insert(0, ""); List <string> eventTypes = gipod.getReferencedata(dataHandler.gipodReferencedata.eventtype); eventTypes.Insert(0, ""); cityCombo.DataSource = cities; provinceCombo.DataSource = provinces; ownerCombo.DataSource = owners; eventTypeCombo.DataSource = eventTypes; //time DateTime nextMonth = DateTime.Today.Add(new TimeSpan(30, 0, 0, 0, 0)); startdatePicker.Value = DateTime.Today; startdatePicker.MaxDate = nextMonth; startdatePicker.MinDate = DateTime.Today; enddatePicker.Value = nextMonth; enddatePicker.MinDate = DateTime.Today; }
private void initGUI() { dataHandler.capakey capakey = new dataHandler.capakey(timeout: gpExtension.timeout); municipality = capakey.getMunicipalities(); var qry = from datacontract.municipality t in municipality.municipalities select t.municipalityName; //lists cities = qry.ToList(); cities.Insert(0, ""); List<string> provinces = new List<string>() { "Antwerpen", "Limburg", "Vlaams-Brabant", "Oost-Vlaanderen", "West-Vlaanderen" }; provinces.Insert(0, ""); List<string> owners = gipod.getReferencedata(dataHandler.gipodReferencedata.owner); owners.Insert(0, ""); List<string> eventTypes = gipod.getReferencedata(dataHandler.gipodReferencedata.eventtype); eventTypes.Insert(0, ""); cityCombo.DataSource = cities; provinceCombo.DataSource = provinces; ownerCombo.DataSource = owners; eventTypeCombo.DataSource = eventTypes; //time DateTime nextMonth = DateTime.Today.Add(new TimeSpan(30, 0, 0, 0, 0)); startdatePicker.Value = DateTime.Today; startdatePicker.MaxDate = nextMonth; startdatePicker.MinDate = DateTime.Today; enddatePicker.Value = nextMonth; enddatePicker.MinDate = DateTime.Today; }