Example #1
0
        /// <summary>
        /// Creates a new Model synchronously.
        /// </summary>
        /// <returns><c>true</c> if creation completed, otherwise <c>false</c>.</returns>
        public bool Create()
        {
            if (this.Close())
            {
                this.model = ModelRoot.Create <T> ();

                this.OnCreatedInternal(EventArgs.Empty);
                this.RaiseCreatedEvent(EventArgs.Empty);

                return(true);
            }

            return(false);
        }