Пример #1
0
 public virtual void Process(GlimpsePipelineArgs <TDataModel> args)
 {
     Assert.ArgumentNotNull(args, "args");
     Assert.ArgumentNotNull(args.DataModel, "args.DataModel");
     if (args.TabObject == null)
     {
         args.TabObject = new TabObject();
     }
 }
Пример #2
0
        public virtual void Process(GlimpsePipelineArgs <TDataModel> args)
        {
            Assert.ArgumentNotNull(args, "args");
            Assert.ArgumentNotNull(args.DataModel, "args.DataModel");
            Assert.ArgumentNotNull(args.TabObject, "args.TabObject");
            var tab  = args.TabObject;
            var data = this.GetSectionData(args);

            AddSectionDataToTab(data, tab);
        }
        public virtual void Process(GlimpsePipelineArgs <TDataModel> args)
        {
            Assert.ArgumentNotNull(args, "args");
            Assert.ArgumentNotNull(args.SectionHandlers, "args.SectionHandlers");
            var layout = TabLayout.Create();

            foreach (var name in args.SectionHandlers.Keys)
            {
                layout.Cell(name, TabLayout.Create().Row(args.SectionHandlers[name]));
            }
            args.TabLayout = layout;
        }
        public virtual void Process(GlimpsePipelineArgs <TDataModel> args)
        {
            Assert.ArgumentNotNull(args, "args");
            var handlers = args.SectionHandlers;

            if (handlers == null)
            {
                handlers = new Dictionary <string, Action <TabLayoutRow> >();
            }
            foreach (var name in _sectionNames)
            {
                handlers.Add(name, GetRowHandler(name));
            }
            args.SectionHandlers = handlers;
        }
Пример #5
0
 protected abstract List <TSectionModel> GetSectionData(GlimpsePipelineArgs <TDataModel> args);