/// <summary> /// Set default state of Recipe Ingredients /// Deselect Recipe Ingredients Listbox and disable "Add to Recipe" button. /// </summary> private void ClearNewRecipeIngredients() { LbIngredients.UnselectAll(); TbQuantity.Text = ""; BtnAddRecipeIngredient.IsEnabled = false; BtnRemoveRecipeIngredient.IsEnabled = false; }
public void Clear() { TbIngredient.Text = ""; LbIngredients.UnselectAll(); Ingredients.Current = null; BtnSave.Content = "Add"; BtnDelete.IsEnabled = false; BtnClear.IsEnabled = false; }