/// <summary>
        /// Initializes the specified my model.
        /// </summary>
        /// <param name="myModel">My model.</param>
        /// <param name="myView">My view.</param>
        /// <returns><c>true</c> if success, <c>false</c> otherwise.</returns>
        public bool initialize(MVC_Model myModel, MVC_View myView)
        {
            this.myModel = myModel;
            this.myView  = myView;

            return(true);
        }
        /// <summary>
        /// Initializes the specified my model.
        /// </summary>
        /// <param name="myModel">My model.</param>
        /// <param name="myView">My view.</param>
        /// <returns><c>true</c> if success, <c>false</c> otherwise.</returns>
        public bool initialize(MVC_Model myModel, MVC_View myView)
        {

            this.myModel = myModel;
            this.myView = myView;

            return true;
        }
Example #3
0
        /// <summary>
        /// Attaches the view.
        /// </summary>
        /// <param name="myView">My view.</param>
        /// <returns><c>true</c> if success, <c>false</c> otherwise.</returns>
        public bool attachView(MVC_View myView)
        {
            try
            {
                this.attachedViews.Add(myView);
            }
            catch (Exception)
            {
                return(false);
            }

            return(true);
        }
Example #4
0
 /// <summary>
 /// Attaches the view.
 /// </summary>
 /// <param name="myView">My view.</param>
 /// <returns><c>true</c> if success, <c>false</c> otherwise.</returns>
 public bool attachView(MVC_View myView)
 {
     try
     {
         this.attachedViews.Add(myView);
     }
     catch (Exception)
     {
         
         return false;
     }
     
     return true;
 }