Esempio n. 1
0
    public void populateAndRender(List <ObjectData> list, DateTime upperbound, DateTime lowerbound, bool activate_temp, List <POICoordinatesObject> poilist, bool camera)
    {
        this.upperbound    = upperbound;
        this.lowerbound    = lowerbound;
        this.activate_temp = activate_temp;

        if (camera)
        {
            int r = list.Count - 9;
            list.RemoveRange(9, r);
        }
        parseToPictureData(list, poilist);
        Debug.Log("COunt" + list.Count);


        if (pictureDataList.Count != 0)
        {
            var eventArgs = new UpdatePicturesEventArgs(pictureDataList);
            // Dispatch the 'Result changed' event

            OnUpdatePictures(this, eventArgs);
        }
        else
        {
            Debug.Log("No Results found");
            var eventArgs = new BackEventArgs();
            OnEDialog(this, eventArgs);
        }
    }
Esempio n. 2
0
        private void HandleUpdatePicture(object sender, UpdatePicturesEventArgs e)
        {
            if (!second)
            {
                view.setTextures(e.getPictureData());
                second = true;
            }

            else
            {
                view.setActiveTextures(e.getKeys());
            }
        }
Esempio n. 3
0
    public void populateFetchedList(DateTime upperbound, DateTime lowerbound, bool activate_temp,
                                    List <POICoordinatesObject> poilist)
    {
        this.upperbound    = upperbound;
        this.lowerbound    = lowerbound;
        this.activate_temp = activate_temp;
        List <int> finalkeys = parseActivePictureData(poilist);

        if (finalkeys.Count != 0)
        {
            Debug.Log("Parsed the keys ");
            var eventArgs = new UpdatePicturesEventArgs(finalkeys);
            // Dispatch the 'Result changed' event

            OnUpdatePictures(this, eventArgs);
        }
        else
        {
            Debug.Log("No Results found");
            var eventArgs = new BackEventArgs();
            OnEDialog(this, eventArgs);
        }
    }
Esempio n. 4
0
    public void renderDebugPicture()
    {
        pictureDataList = new List <PictureData>();

        pictureDataList.Add(new PictureData(0, "https://cdn.pixabay.com/photo/2016/10/18/21/22/california-1751455__340.jpg", 21.42039, 24.28500, 0));
        pictureDataList.Add(new PictureData(1, "https://cdn.pixabay.com/photo/2018/01/14/23/12/nature-3082832__340.jpg", -28.35779, 66.10798, 0));
        pictureDataList.Add(new PictureData(2, "https://cdn.pixabay.com/photo/2015/05/15/14/21/architecture-768432__340.jpg", -23.69705, -142.92103, 0));
        pictureDataList.Add(new PictureData(3, "https://cdn.pixabay.com/photo/2016/10/20/18/35/sunrise-1756274__340.jpg", 52.08303, -28.59140, 0));
        pictureDataList.Add(new PictureData(4, "https://cdn.pixabay.com/photo/2013/10/02/23/03/dog-190056__340.jpg", 34.3313, 17.20796, 0));
        pictureDataList.Add(new PictureData(5, "https://cdn.pixabay.com/photo/2015/04/19/08/32/rose-729509__340.jpg", 23.64371, -39.94751, 0));
        pictureDataList.Add(new PictureData(6, "https://cdn.pixabay.com/photo/2013/10/02/23/03/dawn-190055__340.jpg", 69.48288, -117.56180, 0));
        pictureDataList.Add(new PictureData(7, "https://cdn.pixabay.com/photo/2014/09/07/16/53/hands-437968__340.jpg", 64.95757, 70.36632, 0));
        pictureDataList.Add(new PictureData(8, "https://cdn.pixabay.com/photo/2017/03/13/10/25/hummingbird-2139279__340.jpg", -18.70780, 22.63778, 0));
        pictureDataList.Add(new PictureData(9, "https://cdn.pixabay.com/photo/2014/09/14/18/04/dandelion-445228__340.jpg", 39.53518, 36.22254, 0));
        pictureDataList.Add(new PictureData(10, "https://cdn.pixabay.com/photo/2015/12/01/20/28/fall-1072821__340.jpg", 18.02662, 39.71201, 0));
        pictureDataList.Add(new PictureData(11, "https://cdn.pixabay.com/photo/2018/09/23/18/30/drop-3698073__340.jpg", -40.42041, -170.03909, 0));
        pictureDataList.Add(new PictureData(12, "https://cdn.pixabay.com/photo/2017/12/10/15/16/white-horse-3010129__340.jpg", -51.71954, 73.71774, 0));

        var eventArgs = new UpdatePicturesEventArgs(pictureDataList);

        // Dispatch the 'Result changed' event
        OnUpdatePictures(this, eventArgs);
    }