public DetailTripDetailPageViewModel(SemanticLink link, TripDirection direction, InvokeScript script) { this.SemanticLink = link; this.TripDirection = direction; this.invokeScript = script; Initialize(); }
public MainMapPageViewModel(List<SemanticLink> extractedSemanticLinks, TripDirection direction, InvokeScript script) { this.ExtractedSemanticLinks = extractedSemanticLinks; this.SelectedSemanticLinks = new ObservableCollection<SemanticLink>(); this.TripDirection = direction; this.invokeScript = script; Initialize(); }
public MainMapPageViewModel(List <SemanticLink> extractedSemanticLinks, TripDirection direction, InvokeScript script) { this.ExtractedSemanticLinks = extractedSemanticLinks; this.SelectedSemanticLinks = new ObservableCollection <SemanticLink>(); this.TripDirection = direction; this.invokeScript = script; Initialize(); }
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 } }); }