コード例 #1
0
ファイル: capakeyForm.cs プロジェクト: geopunt/geopunt4arcgis
        public capakeyForm()
        {
            //set global objects
            view = ArcMap.Document.ActiveView;
            map = view.FocusMap;

            wgs = geopuntHelper.wgs84;

            gpExtension = geopunt4arcgisExtension.getGeopuntExtension();

            capakey = new dataHandler.capakey(timeout: gpExtension.timeout);

            InitializeComponent();

            initGui();
        }
コード例 #2
0
        public capakeyForm()
        {
            //set global objects
            view = ArcMap.Document.ActiveView;
            map  = view.FocusMap;

            wgs = geopuntHelper.wgs84;

            gpExtension = geopunt4arcgisExtension.getGeopuntExtension();

            capakey = new dataHandler.capakey(timeout: gpExtension.timeout);

            InitializeComponent();

            initGui();
        }
コード例 #3
0
        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();
        }
コード例 #4
0
        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;
        }
コード例 #5
0
ファイル: gipodForm.cs プロジェクト: geopunt/geopunt4arcgis
        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;
        }