Пример #1
0
 public override ControlViewBase AddControl(SectionView sectionView, Control control)
 {
     var l = control as Line;
     var lineView = sectionView.AddControl(l);
     sectionView.Section.Controls.Add(l);
     lineView.ParentSection = sectionView;
     designService.SelectedControl = lineView;
     return lineView;
 }
Пример #2
0
 public override ControlViewBase AddControl(SectionView sectionView, Control control)
 {
     MonoReports.Model.Controls.Image img = control as MonoReports.Model.Controls.Image;
     ImageView imageView = sectionView.AddControl(img) as ImageView;
     sectionView.Section.Controls.Add(img);
     imageView.ParentSection = sectionView;
     designService.SelectedControl = imageView;
     return imageView;
 }
Пример #3
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;
        }
Пример #4
0
 public override ControlViewBase AddControl(SectionView sectionView, Control control)
 {
     var tb = control as TextBlock;
     TextBlockView textBlockView = sectionView.AddControl(tb) as TextBlockView;
     sectionView.Section.Controls.Add(tb);
     textBlockView.ParentSection = sectionView;
     designService.SelectedControl = textBlockView;
     return textBlockView;
 }