Esempio n. 1
0
        /// <summary>
        /// Edit given view and commit it.
        /// </summary>
        /// <param name="view">The view.</param>
        /// <returns><c>true</c> if commit was successful, <c>false</c> otherwise.</returns>
        internal bool Commit(EditViewBase view)
        {
            var editedView = Action(view);

            if (editedView.HasError)
            {
                return(false);
            }

            return(editedView.Commit());
        }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DiagramDefinition" /> class.
 /// </summary>
 /// <param name="initialView">The initial view.</param>
 public DiagramDefinition(EditViewBase initialView)
 {
     InitialView = initialView;
 }