コード例 #1
0
 //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();
 }
コード例 #2
0
 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();
     }
 }
コード例 #3
0
 //to clear the text box and display the playlist
 private void TbSearch_DoubleClick(object sender, EventArgs e)
 {
     TbSearch.Clear();
     LbOutput.Items.Clear();
     DisplayList();
 }