private void BT_DeleteFixedExpense(object sender, RoutedEventArgs e)
        {
            var          curItem             = ((ListBoxItem)fixedExpensesListBox.ContainerFromElement((Button)sender)).Content;
            FixedExpense clickedFixedExpense = (FixedExpense)curItem;

            MainWindow.db.deleteFixedExpense(clickedFixedExpense.ID);

            //Odświeżanie listy po usunięciu
            RefreshFixedExpensesList();
        }
        private bool Filter(FixedExpense fixedExpense)
        {
            /*if (SearchField != null)
             * {
             *  string[] searchedStrings = SearchField.Split(' ');//Używane w wyszukiwaniu po nazwach miesięcy
             *
             *  //Logika wyszukiwania po nazwach
             *  for (int j = 0; j < searchedStrings.Count(); j++)
             *  {
             *      if (month.NazwaMiesiaca.IndexOf(searchedStrings[j], StringComparison.OrdinalIgnoreCase) != -1
             *          && searchedStrings[j].Length > 0)
             *      {
             *          monthNameMatch = true;
             *          break;
             *      }
             *  }*/

            return(SearchField == null ||
                   SearchField == "" ||
                   fixedExpense.Nazwa.IndexOf(SearchField, StringComparison.OrdinalIgnoreCase) != -1 ||
                   fixedExpense.Opis.IndexOf(SearchField, StringComparison.OrdinalIgnoreCase) != -1);
        }