public CommentScreen(int landId, ObservableCollection<Earthwatchers.Models.Comment> comments) { if (comments == null) return; InitializeComponent(); commentRequests = new CommentRequests(Constants.BaseApiUrl); this.landId = landId; this.comments = comments; KeyDown += CommentScreenKeyDown; LoadComments(); }
public HexagonInfo() { InitializeComponent(); earthwatcherRequest = new EarthwatcherRequests(Constants.BaseApiUrl); commentRequests = new CommentRequests(Constants.BaseApiUrl); landRequests = new LandRequests(Constants.BaseApiUrl); hexagonLayer = (HexagonLayer)Current.Instance.LayerHelper.FindLayer(Constants.Hexagonlayername); //Add event listeners commentRequests.CommentsByLandReceived += CommentRequestCommentsByLandReceived; earthwatcherRequest.EarthwatcherReceived += EarthwatcherChanged; Current.Instance.MapControl.zoomFinished += MapControlZoomFinished; Current.Instance.MapControl.zoomStarted += MapControlZoomStarted; HtmlPage.RegisterScriptableObject("HexagonInfo", this); }