Пример #1
0
        /// <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
        }
Пример #2
0
 /// <summary>
 /// Marks the Model for deletion (if it is an
 /// editable root object).
 /// </summary>
 public virtual void Delete(object sender, ExecuteEventArgs e)
 {
     DoDelete();
 }
Пример #3
0
 /// <summary>
 /// Removes an item from the Model (if it
 /// is a collection).
 /// </summary>
 public virtual void Remove(object sender, ExecuteEventArgs e)
 {
     DoRemove(e.MethodParameter);
 }
Пример #4
0
 /// <summary>
 /// Cancels changes made to the model
 /// if ManagedObjectLifetime is true.
 /// </summary>
 public virtual void Cancel(object sender, ExecuteEventArgs e)
 {
     DoCancel();
 }
Пример #5
0
 /// <summary>
 /// Saves the Model, first committing changes
 /// if ManagedObjectLifetime is true.
 /// </summary>
 public virtual void Save(object sender, ExecuteEventArgs e)
 {
     BeginSave();
 }