Ejemplo n.º 1
0
 protected override ViewInfo newViewInfo(Type viewType, ViewAttribute viewAttr)
 {
     if (viewAttr is StubViewAttribute)
         return specialViewInf = new ViewInfo(
                 (viewAttr as StubViewAttribute).StubViewProperty, typeof(int));
     else return base.newViewInfo(viewType, viewAttr);
 }
Ejemplo n.º 2
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;
        }
Ejemplo n.º 3
0
        protected override ViewInfo newViewInfo(Type viewType, ViewAttribute viewAttr)
        {
            WinformsViewInfo viewInfo = new WinformsViewInfo(viewAttr.ViewName, viewType);
            if (!(viewAttr is WinformsViewAttribute)) return viewInfo;

            viewInfo.IsMdiParent = (viewAttr as WinformsViewAttribute).IsMdiParent;
            viewInfo.MdiParent = (viewAttr as WinformsViewAttribute).MdiParent;
            viewInfo.ShowModal = (viewAttr as WinformsViewAttribute).ShowModal;

            return viewInfo;
        }
Ejemplo n.º 4
0
 protected override ViewInfo newViewInfo(Type viewType, ViewAttribute vAtr)
 {
     return new ViewInfoEx(vAtr.ViewName,
           (vAtr as ViewExAttribute).ImgName, viewType);
 }
Ejemplo n.º 5
0
 protected virtual ViewInfo newViewInfo(Type viewType, ViewAttribute viewAttr)
 {
     return new ViewInfo(viewAttr.ViewName, viewType);
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Creates a ViewInfo object by a given ViewAttribute instance.
 /// </summary>
 #endregion
 protected virtual ViewInfo newViewInfo(Type viewType, ViewAttribute viewAttr)
 {
     return(new ViewInfo(viewType));
 }