/// <summary> /// 注册View /// </summary> /// <param name="model">View实例</param> public static void RegisterView(FBView view) { //防止重复 if (Views.ContainsKey(view.name)) { Views.Remove(view.name); } view.RegisterEvents(); Views[view.name] = view; }
/// <summary> 注册新View </summary> protected void RegisterView(FBView view) { FBMVC.RegisterView(view); }