} //Done private void GetSubCat(object sender, RoutedEventArgs e) { if (Categtxt.Text == "") { MessageBox.Show("Enter the Category First"); return; } AllSubCategories allSubCategories = new AllSubCategories(this, (Categtxt.Text).ToString()); allSubCategories.ShowDialog(); } //Done
} //Done Fiinall Function private void GetSubCat(object sender, RoutedEventArgs e) { //AllRecipesDGV.SelectedItem = null; if (Categtxt.Text == "") { MessageBox.Show("Enter the Category First"); return; } AllSubCategories allSubCategories = new AllSubCategories(this, (Categtxt.Text).ToString()); allSubCategories.ShowDialog(); } //Done Finall Function