public virtual IView CreateView() { var View = ViewType.CreateInstance() as IView; if (View == null) { throw new Exception("视图创建失败."); } View.ID = ID; View.Caption = Caption; View.Icon = Icon; View.LargeIcon = LargeIcon; View.Controller = this; return(View); }