/// <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; }
/// <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); }
/// <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; }