예제 #1
0
        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;
        }
예제 #2
0
        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);
        }