//Clears all text boxes after a spell is added public void ClearTB() { TbSearch.Clear(); TbName.Clear(); TbLevel.Clear(); TbSchool.Clear(); TbTime.Clear(); TbRange.Clear(); TbComponents.Clear(); TbDuration.Clear(); TbAvailableClass.Clear(); TbDescription.Clear(); }
private void BtnSearch_Click(object sender, RoutedEventArgs e) { if (TbSearch.Visibility == Visibility.Hidden) { TbSearch.Visibility = Visibility.Visible; TbSearch.Focus(); } else { TbSearch.Visibility = Visibility.Hidden; TbSearch.Clear(); } }
//to clear the text box and display the playlist private void TbSearch_DoubleClick(object sender, EventArgs e) { TbSearch.Clear(); LbOutput.Items.Clear(); DisplayList(); }