public RecipeViewModel() { SaveCommand = new RelayCommand (Save_Execute, Save_Enabled); PrintCommand = new RelayCommand (Print_Execute); DeleteTagCommand = new RelayCommand (DeleteTag_Execute, DeleteTag_Enabled); //EditMode = true; ShouldAutoSaveTagsAndRatings = !EditMode; }
public SelectedIndexViewModel() { m_observableSources = new ObservableCollection<Meal.Svc.Model.ISource> (); m_observableTags = new ObservableCollection<string> (); m_observableIngredients = new ObservableCollection<IIngredient> (); NewRecipeCommand = new RelayCommand (NewRecipeExecute); PrintRecipeCommand = new RelayCommand (PrintRecipeExecute, PrintRecipeEnabled); SelectRecipeCommand = new RelayCommand (SelectRecipeExecute, SelectRecipeEnabled); }