protected override ViewInfo newViewInfo(Type viewType, ViewAttribute viewAttr) { MobileformsViewInfo viewInfo = new MobileformsViewInfo(viewAttr.ViewName, viewType); if (!(viewAttr is MobileformsViewAttribute)) return viewInfo; viewInfo.ShowModal = (viewAttr as MobileformsViewAttribute).ShowModal; return viewInfo; }
protected virtual void InitializeFormView(Form form, MobileformsViewInfo viewInf) { InitializeView(form as IView); form.Activated += new EventHandler(View_ActivatedManually); form.Deactivate += new EventHandler(View_Deactivate); form.Disposed += new EventHandler(MobileformsView_Disposed); NotifyInitialize(form as IView); InitializeChildViews(form); }