public clickFileShowMeeting(string fileID) { InitializeComponent(); XMLProcessor processor = new XMLProcessor(); XMLSearcher searcher = new XMLSearcher(processor.GetWorkingPath()); LinkedList <MeetingNode> meetingList = searcher.FindMeetingsByFileID(fileID); FileName.Text = searcher.FindFilesByFileIDs(fileID).Last().GetFileName(); try { FileLink.NavigateUri = new System.Uri(searcher.FindFilesByFileIDs(fileID).Last().GetFilePath()); } catch (System.UriFormatException ex) { whetherThrows = true; } ObservableCollection <clickFile> items = new ObservableCollection <clickFile>(); foreach (MeetingNode meeting in meetingList) { //Debug.Print(meeting.GetMeetingID()+""+ meeting.GetStartTimeS()); items.Add(new clickFile() { Time = meeting.GetStartTimeS(), Name = meeting.GetMeetingTitle(), Attendee = meeting.GetAttendents() }); MeetingList.ItemsSource = items; } }
public clickShowFiles(string IDList) { InitializeComponent(); XMLProcessor processor = new XMLProcessor(); XMLSearcher searcher = new XMLSearcher(processor.GetWorkingPath()); char[] delimiterChars = { ';' }; id = IDList.Split(delimiterChars); foreach (string s in id) { Debug.Print("" + s); if (searcher.FindFilesByFileIDs(s).Count != 0) { Files.Items.Add(searcher.FindFilesByFileIDs(s).Last().GetFileName()); } } }