Esempio n. 1
0
 /// <summary>
 /// 根据名称获得视图
 /// </summary>
 /// <param name="modelName">视图名称</param>
 /// <returns>视图对象</returns>
 protected BaseView GetView(string viewName)
 {
     return(MVCSystem.GetView(viewName));
 }
Esempio n. 2
0
 /// <summary>
 /// 根据类型获得视图
 /// </summary>
 /// <typeparam name="T">视图类型</typeparam>
 /// <returns>视图对象</returns>
 protected BaseView GetView <T>() where T : BaseView
 {
     return(MVCSystem.GetView <T>());
 }