Esempio n. 1
0
 // 发送事件
 protected void SendEvent(string eventName, object data = null)
 {
     FBMVC.SendEvent(eventName, data);
 }
Esempio n. 2
0
 /// <summary> 获取模型 </summary>
 protected T GetModel <T>()
     where T : FBModel
 {
     return(FBMVC.GetModel <T>() as T);
 }
Esempio n. 3
0
 /// <summary> 注册新Controller </summary>
 protected void RegisterController(string eventName, Type controllerType)
 {
     FBMVC.RegisterController(eventName, controllerType);
 }
Esempio n. 4
0
 /// <summary> 注册新View </summary>
 protected void RegisterView(FBView view)
 {
     FBMVC.RegisterView(view);
 }
Esempio n. 5
0
 /// <summary> 注册新Model </summary>
 protected void RegisterModel(FBModel model)
 {
     FBMVC.RegisterModel(model);
 }
Esempio n. 6
0
 /// <summary> 获取View </summary>
 protected T GetView <T>()
     where T : FBView
 {
     return(FBMVC.GetView <T>() as T);
 }