private void Add_Click(object sender, RoutedEventArgs e)
        {
            TermWindow termWindow = new TermWindow()
            {
                UserData        = this.UserData,
                ActionsData     = Actions.New,
                TermsWindowData = this,
            };

            termWindow.ShowDialog();
        }
 private void Edit_Click(object sender, RoutedEventArgs e)
 {
     if (listBox != null)
     {
         if (listBox.SelectedItem is Term term)
         {
             TermWindow termWindow = new TermWindow()
             {
                 UserData        = this.UserData,
                 ActionsData     = Actions.Edit,
                 TermsWindowData = this,
                 TermData        = term,
             };
             termWindow.ShowDialog();
         }
     }
 }