public void AddPackage() { CurrentFeeder = new Feeder(); _isEditing = false; AddFeederCommand.RaiseCanExecuteChanged(); SaveFeederCommand.RaiseCanExecuteChanged(); DeleteFeederCommand.RaiseCanExecuteChanged(); CancelFeederCommand.RaiseCanExecuteChanged(); SetLocationCommand.RaiseCanExecuteChanged(); }
public void SaveFeeder() { if (!_isEditing) { FeederDefintions.Add(CurrentFeeder); } _isDirty = true; CurrentFeeder = null; AddFeederCommand.RaiseCanExecuteChanged(); SaveLibraryCommand.RaiseCanExecuteChanged(); SetLocationCommand.RaiseCanExecuteChanged(); }