private void ExcludeTagButton_Click(object sender, RoutedEventArgs e) { TagginWindow newWindow = new TagginWindow(LocalData, this, ExcludedTagRequest[ExcludedTagRequest.Count - 1], false); newWindow.ShowDialog(); newWindow = null; GC.Collect(); GC.WaitForFullGCComplete(); Update_Request_Page(); }
private void SelectTags_Click(object sender, RoutedEventArgs e) { TagginWindow TaggingWindow = new TagginWindow(LocalData, currentReview, this); TaggingWindow.ShowDialog(); TaggingWindow.Close(); TaggingWindow = 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(); UpdateReviewTags(); }