public TagginWindow(LocalDataManager LocalData, ReviewObject givenReview, ReviewPage Parent_Page) { InitializeComponent(); //Keep a list of all tags that are selected to be "submitted" to the review later. SelectedTags = new List <TagObject>(givenReview.getTags()); this.Parent_Page = Parent_Page; this.LocalData = LocalData; AdvanceSearchWindow = null; CreateTagBoxes(givenReview.getTags()); }
private void AdvanceSearch_Button_Click(object sender, RoutedEventArgs e) { AdvanceSearchWindow advWindow = new AdvanceSearchWindow(this.LocalData, this); advWindow.ShowDialog(); advWindow.Close(); advWindow = null; this.TableView.ItemsSource = null; GC.Collect(); //It just annoys me that the information iisn't immediately collected so I force it to be as it closes. GC.WaitForFullGCComplete(); this.TableView.ItemsSource = this.Local_Reviews; this.TableView.Items.Refresh(); }
public TagginWindow(LocalDataManager LocalData, AdvanceSearchWindow AdvanceSearchWindow, List <TagObject> GivenTags, bool Including) { InitializeComponent(); this.Including = Including; this.AdvanceSearchWindow = AdvanceSearchWindow; this.LocalData = LocalData; if (GivenTags == null) { SelectedTags = new List <TagObject>(); } else { SelectedTags = GivenTags; } Parent_Page = null; CreateTagBoxes(SelectedTags); }