예제 #1
0
 //注册控制器
 protected void RegisterController(string eventName, Type controllerType)
 {
     Facade.RegisterController(eventName, controllerType);
 }
예제 #2
0
 //注册视图
 protected void RegisterView(View view)
 {
     Facade.RegisterView(view);
 }
예제 #3
0
 //注册模型
 protected void RegisterModel(Model model)
 {
     Facade.RegisterModel(model);
 }
예제 #4
0
 //获取视图
 protected T GetView <T>()
     where T : View
 {
     return(Facade.GetView <T>() as T);
 }
예제 #5
0
 //获取模型
 protected T GetModel <T>()
     where T : Model
 {
     return(Facade.GetModel <T>() as T);
 }
예제 #6
0
 //发送事件
 protected void SendEvent(string eventName, object data = null)
 {
     Facade.SendEvent(eventName, data);
 }