Ejemplo n.º 1
0
        public SectionView(Report parentReport,IControlViewFactory controlViewFactory,Section section,Cairo.PointD sectionSpan)
            : base(section)
        {
            DesignCrossSectionControlsToAdd = new List<ControlViewBase> ();
            DesignCrossSectionControlsToRemove = new List<ControlViewBase> ();
            this.controlViewFactory = controlViewFactory;
            this.parentReport = parentReport;

            if (section is DetailSection)
                AllowCrossSectionControl = false; else {
                AllowCrossSectionControl = true;
            }

            SectionSpan = sectionSpan;
            controls = new System.Collections.Generic.List<ControlViewBase> ();
            AddControls (this.section.Controls);
            SectionGripperColor = sectionHeaderColor1;

            InvalidateBound ();
        }
Ejemplo n.º 2
0
        public SectionView(IControlViewFactory controlViewFactory, Section section,Cairo.PointD sectionSpan)
            : base(section)
        {
            sectionRenderer = controlViewFactory.ReportRenderer.RenderersDictionary [section.GetType ()] as SectionRenderer;
            SectionHederHeightInUnit = SectionheaderHeight / sectionRenderer.UnitMulitipier;
            DesignCrossSectionControlsToAdd = new List<ControlViewBase> ();
            DesignCrossSectionControlsToRemove = new List<ControlViewBase> ();
            this.controlViewFactory = controlViewFactory;

            if (section is DetailSection)
                AllowCrossSectionControl = false; else {
                AllowCrossSectionControl = true;
            }

            SectionSpan = sectionSpan;
            controls = new System.Collections.Generic.List<ControlViewBase> ();
            AddControls (this.section.Controls);
            SectionGripperColor = sectionHeaderColor1;

            InvalidateBound ();
        }
Ejemplo n.º 3
0
        public SectionView(Report parentReport, IControlViewFactory controlViewFactory, Section section, Cairo.PointD sectionSpan) : base(section)
        {
            DesignCrossSectionControlsToAdd    = new List <ControlViewBase> ();
            DesignCrossSectionControlsToRemove = new List <ControlViewBase> ();
            this.controlViewFactory            = controlViewFactory;
            this.parentReport = parentReport;

            if (section is DetailSection)
            {
                AllowCrossSectionControl = false;
            }
            else
            {
                AllowCrossSectionControl = true;
            }

            SectionSpan = sectionSpan;
            controls    = new System.Collections.Generic.List <ControlViewBase> ();
            AddControls(this.section.Controls);
            SectionGripperColor = sectionHeaderColor1;

            InvalidateBound();
        }
Ejemplo n.º 4
0
 public void Register(IControlViewFactory factory)
 {
     Factories.Add(factory.ProfileName, factory);
     Register(factory.Create());
 }