Inheritance: Control, IResizable
示例#1
0
 public SubreportView(MonoReports.Model.Controls.SubReport subreport,SubreportRenderer renderer, SectionView parentSection)
     : base(subreport)
 {
     this.subreport = subreport;
     this.ParentSection = parentSection;
     AbsoluteBound = new Rectangle (parentSection.AbsoluteDrawingStartPoint.X + subreport.Location.X, parentSection.AbsoluteDrawingStartPoint.Y + subreport.Location.Y, subreport.Width, subreport.Height);
     SubreportRenderer = renderer;
 }
示例#2
0
 public SubreportView(MonoReports.Model.Controls.SubReport subreport, SectionView parentSection) : base(subreport)
 {
     this.subreport     = subreport;
     this.ParentSection = parentSection;
     AbsoluteBound      = new Rectangle(parentSection.AbsoluteDrawingStartPoint.X + subreport.Location.X, parentSection.AbsoluteDrawingStartPoint.Y + subreport.Location.Y, subreport.Width, subreport.Height);
     SubreportRenderer  = new SubreportRenderer()
     {
         DesignMode = true
     };
 }
示例#3
0
        public override Control CreateControl()
        {
            var subreport = new SubReport();

            CopyBasicProperties(subreport);
            subreport.CanGrow   = CanGrow;
            subreport.CanShrink = CanShrink;
            subreport.Report    = Report;

            return(subreport);
        }
示例#4
0
        public override Control CreateControl()
        {
            var subreport = new SubReport();
            CopyBasicProperties(subreport);
            subreport.CanGrow = CanGrow;
            subreport.CanShrink = CanShrink;
            subreport.Report = Report;

            return subreport;
        }
示例#5
0
        public override ControlViewBase CreateNewControl(SectionView sectionView)
        {
            var startPoint = sectionView.PointInSectionByAbsolutePoint (designService.StartPressPoint.X, designService.StartPressPoint.Y);

            var subreport = new SubReport {
                Location = new MonoReports.Model.Point (startPoint.X, startPoint.Y),
                Size = new Size(50,20),
                BackgroundColor = new MonoReports.Model.Color(0.5,0.5,0.5)
            };
            SubreportView subreportView = sectionView.AddControl (subreport) as SubreportView;
            sectionView.Section.Controls.Add (subreport);
            subreportView.ParentSection = sectionView;
            designService.SelectedControl = subreportView;
            return subreportView;
        }