public SectionController() {

            LayoutControllerType = typeof( Section.LayoutController );

            postService = new ContentPostService();
            sectionService = new ContentSectionService();
        }
Esempio n. 2
0
        public PostController()
        {
            LayoutControllerType = typeof(Section.LayoutController);

            postService    = new ContentPostService();
            sectionService = new ContentSectionService();
        }
Esempio n. 3
0
 public static void updateParamValues( ContentSection section, IContentSectionService sectionService, MvcContext ctx )
 {
     IList parms = ServiceContext.Get( section.ServiceId ).GetParams();
     int count = parms.Count;
     StringBuilder builder = new StringBuilder();
     for (int i = 0; i < count; i++) {
         ParamControl control = parms[i] as ParamControl;
         builder.Append( "param" );
         builder.Append( i );
         builder.Append( "=" );
         String strVal = ctx.Post( "param" + i );
         object val = control.ChangeType( strVal );
         builder.Append( val );
         if (i < (count - 1)) {
             builder.Append( ";" );
         }
     }
     section.ServiceParams = builder.ToString();
     sectionService.Update( section );
 }
        public static void updateParamValues(ContentSection section, IContentSectionService sectionService, MvcContext ctx)
        {
            IList         parms   = ServiceContext.Get(section.ServiceId).GetParams();
            int           count   = parms.Count;
            StringBuilder builder = new StringBuilder();

            for (int i = 0; i < count; i++)
            {
                ParamControl control = parms[i] as ParamControl;
                builder.Append("param");
                builder.Append(i);
                builder.Append("=");
                String strVal = ctx.Post("param" + i);
                object val    = control.ChangeType(strVal);
                builder.Append(val);
                if (i < (count - 1))
                {
                    builder.Append(";");
                }
            }
            section.ServiceParams = builder.ToString();
            sectionService.Update(section);
        }
 public ListTwoController() {
     postService = new ContentPostService();
     sectionService = new ContentSectionService();
 }
Esempio n. 6
0
 public PollController() {
     postService = new ContentPostService();
     pollService = new ContentPollService();
     sectionService = new ContentSectionService();
 }
Esempio n. 7
0
 public SlideController() {
     postService = new ContentPostService();
     sectionService = new ContentSectionService();
 }
Esempio n. 8
0
 public RowController()
 {
     rowService     = new RowService();
     sectionService = new ContentSectionService();
 }
Esempio n. 9
0
 public ListMaker(  ) {
     postService = new ContentPostService();
     sectionService = new ContentSectionService();
 }
Esempio n. 10
0
 public ListImgController() {
     sectionService = new ContentSectionService();
     postService = new ContentPostService();
     imgService = new ContentImgService();
 }
Esempio n. 11
0
 public PollController()
 {
     postService    = new ContentPostService();
     pollService    = new ContentPollService();
     sectionService = new ContentSectionService();
 }
 public VideoShowController() {
     postService = new ContentPostService();
     sectionService = new ContentSectionService();
 }
Esempio n. 13
0
 public ListTwoController()
 {
     postService    = new ContentPostService();
     sectionService = new ContentSectionService();
 }
Esempio n. 14
0
 public VideoShowController()
 {
     postService    = new ContentPostService();
     sectionService = new ContentSectionService();
 }
Esempio n. 15
0
 public ListImgController()
 {
     sectionService = new ContentSectionService();
     postService    = new ContentPostService();
     imgService     = new ContentImgService();
 }
Esempio n. 16
0
 public NormalController() {
     postService = new ContentPostService();
     imgService = new ContentImgService();
     sectionService = new ContentSectionService();
 }
 public RowController() {
     rowService = new RowService();
     sectionService = new ContentSectionService();
 }
Esempio n. 18
0
 public SummaryController() {
     postService = new ContentPostService();
     sectionService = new ContentSectionService();
 }
Esempio n. 19
0
 public SlideController()
 {
     postService    = new ContentPostService();
     sectionService = new ContentSectionService();
 }
Esempio n. 20
0
 public SummaryController()
 {
     postService    = new ContentPostService();
     sectionService = new ContentSectionService();
 }
Esempio n. 21
0
 public ListMaker(  )
 {
     postService    = new ContentPostService();
     sectionService = new ContentSectionService();
 }
Esempio n. 22
0
 public NormalController()
 {
     postService    = new ContentPostService();
     imgService     = new ContentImgService();
     sectionService = new ContentSectionService();
 }