示例#1
0
        /// <summary>
        /// Attaches the controller.
        /// </summary>
        /// <param name="myController">My controller.</param>
        /// <returns><c>true</c> if success, <c>false</c> otherwise.</returns>
        public bool attachController(MVC_Controller myController)
        {
            try
            {
                this.attachedControllers.Add(myController);
            }
            catch (Exception)
            {
                return(false);
            }

            return(true);
        }
示例#2
0
 /// <summary>
 /// Makes the controller.
 /// </summary>
 /// <returns><c>true</c> if success, <c>false</c> otherwise.</returns>
 private bool makeController()
 {
     myController = new MVC_Controller();
     this.reloadController();
     return(true);
 }
示例#3
0
 /// <summary>
 /// Attaches the controller.
 /// </summary>
 /// <param name="myController">My controller.</param>
 /// <returns><c>true</c> if success, <c>false</c> otherwise.</returns>
 public bool attachController(MVC_Controller myController)
 {
     try
     {
         this.attachedControllers.Add(myController);
     }
     catch (Exception)
     {
         return false;
     }
     
     return true;
 }
示例#4
0
 /// <summary>
 /// Makes the controller.
 /// </summary>
 /// <returns><c>true</c> if success, <c>false</c> otherwise.</returns>
 private bool makeController()
 {
     myController = new MVC_Controller();
     this.reloadController();
     return true;
 }