public DetailTripDetailPageViewModel(SemanticLink link, TripDirection direction, InvokeScript script)
        {
            this.SemanticLink  = link;
            this.TripDirection = direction;
            this.invokeScript  = script;

            Initialize();
        }
コード例 #2
0
        public MainMapPageViewModel(List<SemanticLink> extractedSemanticLinks, TripDirection direction, InvokeScript script)
        {
            this.ExtractedSemanticLinks = extractedSemanticLinks;
            this.SelectedSemanticLinks = new ObservableCollection<SemanticLink>();
            this.TripDirection = direction;
            this.invokeScript = script;

            Initialize();
        }
コード例 #3
0
        public MainMapPageViewModel(List <SemanticLink> extractedSemanticLinks, TripDirection direction, InvokeScript script)
        {
            this.ExtractedSemanticLinks = extractedSemanticLinks;
            this.SelectedSemanticLinks  = new ObservableCollection <SemanticLink>();
            this.TripDirection          = direction;
            this.invokeScript           = script;

            Initialize();
        }
コード例 #4
0
        private void InvokeScriptFunction(string functionName)
        {
            string json = JsonConvert.SerializeObject(Packages, new JsonSerializerSettings
            {
                ContractResolver = new CamelCasePropertyNamesContractResolver()
            });

            InvokeScript?.Invoke(this, new InvokeScriptEventArgs
            {
                FunctionName = functionName,
                Parameters   = new[] { (object)json }
            });
        }
        public DetailTripDetailPageViewModel(SemanticLink link, TripDirection direction, InvokeScript script)
        {
            this.SemanticLink = link;
            this.TripDirection = direction;
            this.invokeScript = script;

            Initialize();
        }