private void btnAddCategory_Click(object sender, RoutedEventArgs e) { CategoryModel category = dbService.AddCategory(tbCategory.Text); UpdateCategories(); tbCategory.Text = ""; }