public Model.Datum GetTicketDetailByID(Int32 Id) { Model.Datum pt = new Model.Datum(); if (UtilityClasses.Account.KEY_TICKET != null) pt = UtilityClasses.Account.KEY_TICKET.data.Where(t => t.parentTicket.id == Id).FirstOrDefault(); return pt; }
private void lstPastIssues_SelectionChanged(object sender, SelectionChangedEventArgs e) { try { if (lstPastIssues.SelectedIndex > -1) { Model.Datum data = new Model.Datum(); data = (Model.Datum)lstPastIssues.SelectedItems[0]; this.Frame.Navigate(typeof(FAQ_Chat)); // NavigationService.Navigate(new Uri("/Views/FAQ_Chat.xaml?ParentTicket=" + data.parentTicket.id, UriKind.Relative)); } } catch (Exception ex) { //List<Parameter> Params = new List<Parameter>(); //Params.Add(AccountFunctions.createParameter("Location", "Faq Home")); //Params.Add(AccountFunctions.createParameter("Method", "lIst Box of PastIssues selection Changed, Error:" + ex.Message)); //FlurryWP8SDK.Api.LogEvent("FAQ Exception", Params); } }