/// <summary> /// Public method to be called by a TrackableEventHandler's Lost/Found Events /// </summary> /// <param name="trackableBehaviour"></param> public void TrackableStatusChanged(TrackableBehaviour trackableBehaviour) { var status = string.Format("{0} -- {1}", trackableBehaviour.CurrentStatus, trackableBehaviour.CurrentStatusInfo); if (this.trackablesDictionary == null) { this.trackablesDictionary = SampleUtil.CreateDictionary(); } var name = trackableBehaviour.TrackableName; if (this.trackablesDictionary != null) { if (this.trackablesDictionary.ContainsKey(name)) { this.trackablesDictionary[name] = status; } else { this.trackablesDictionary.Add(name, status); } } UpdateText(); }