/// <summary> /// 创建一个mvc模块 /// </summary> /// <param name="viewControl"></param> /// <param name="view"></param> static public MvcWarpper Create(string name, IViewControl viewControl, IView view) { ViewAutoSet(view); BindEvnet(viewControl, view); // viewControl.BindModel(); view.BindData(); // var bind = new MvcWarpper() { Name = name, ViewControl = viewControl, View = view }; // return(bind); }
/// <summary> /// 创建一个mvc模块 /// </summary> /// <param name="viewControl"></param> /// <param name="view"></param> static public MvcWarpper Create(string name, IViewControl viewControl, IView view) { //1.自动设置节点 ViewAutoSet(view); //2.绑定数据model viewControl.BindModel(); view.BindModel(); //3.自动绑定事件 BindEvnet(viewControl, view); // var bind = new MvcWarpper() { Name = name, ViewControl = viewControl, View = view }; // return(bind); }