private void BtnAddCategory_Click(object sender, RoutedEventArgs e) { if (txtSubCategory.Text != "" && txtcategory.Text != "") { category.CategoryName = txtcategory.Text; subCategory.SubName = txtSubCategory.Text; services.NewCategory(category, subCategory); getList(); MessageBox.Show("Kategori Başarıyla Eklendi!"); } else { MessageBox.Show("Bütün Alanları Doldurunuz!"); } }