//reset the load and gui of part 2 private void Reset_Part2_Click(object sender, RoutedEventArgs e) { //reset GUI r = null; p = null; ind = null; showcatch.IsEnabled = false; showDic.IsEnabled = false; runQuery.IsEnabled = false; QueryTextBox.Clear(); isWikiExp.IsChecked = false; isSumCheck.IsChecked = false; stemmcheckBox.IsChecked = false; //Delete Last File try { if (File.Exists(Results.LastFile)) { File.Delete(Results.LastFile); } } catch (IOException) { Debug.WriteLine("CANT DELETE!!!!!"); } //Garbage Collector GC.Collect(); GC.WaitForPendingFinalizers(); //notification System.Windows.Forms.MessageBox.Show("The Memory is clean!", "Done!", MessageBoxButtons.OK, MessageBoxIcon.Warning); }
private void Reset_mini() { //reset GUI QueryTextBox.Clear(); QueryTextBox.IsReadOnly = false; isWikiExp.IsChecked = false; isSumCheck.IsChecked = false; queryFile = null; }
public void ClearEditBox() { QueryTextBox.Clear(); }
private void ClearAllButton_Click(object sender, EventArgs e) { QueryTextBox.Clear(); dataGridView1.DataSource = ""; dataGridView1.Refresh(); }