/// <summary> /// Adds a new item to the Model (if it /// is a collection). /// </summary> public virtual void AddNew(object sender, ExecuteEventArgs e) { #if SILVERLIGHT BeginAddNew(); #else DoAddNew(); #endif }
/// <summary> /// Marks the Model for deletion (if it is an /// editable root object). /// </summary> public virtual void Delete(object sender, ExecuteEventArgs e) { DoDelete(); }
/// <summary> /// Removes an item from the Model (if it /// is a collection). /// </summary> public virtual void Remove(object sender, ExecuteEventArgs e) { DoRemove(e.MethodParameter); }
/// <summary> /// Cancels changes made to the model /// if ManagedObjectLifetime is true. /// </summary> public virtual void Cancel(object sender, ExecuteEventArgs e) { DoCancel(); }
/// <summary> /// Saves the Model, first committing changes /// if ManagedObjectLifetime is true. /// </summary> public virtual void Save(object sender, ExecuteEventArgs e) { BeginSave(); }