示例#1
0
        /// <summary>
        /// Creates and initializes a new instance of a <see cref="WriteableControllerView"/> object.
        /// </summary>
        /// <param name="controller">The controller on which the view is attached.</param>
        public static WriteableControllerView Create(WriteableController controller)
        {
            WriteableControllerView View = new WriteableControllerView(controller);

            View.Init();
            return(View);
        }
示例#2
0
        /// <summary>
        /// Creates and initializes a new instance of a <see cref="WriteableController"/> object.
        /// </summary>
        /// <param name="nodeIndex">Index of the root of the node tree.</param>
        public static WriteableController Create(IWriteableRootNodeIndex nodeIndex)
        {
            WriteableController Controller = new WriteableController();

            Controller.SetRoot(nodeIndex);
            Controller.SetInitialized();
            return(Controller);
        }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="WriteableControllerView"/> class.
 /// </summary>
 /// <param name="controller">The controller on which the view is attached.</param>
 private protected WriteableControllerView(WriteableController controller)
     : base(controller)
 {
 }