public ImageView(MonoReports.Model.Controls.Image image, SectionView parentSection, PixbufRepository pixbufRepository) : base(image) { this.ParentSection = parentSection; AbsoluteBound = new Rectangle(parentSection.AbsoluteDrawingStartPoint.X + image.Location.X, parentSection.AbsoluteDrawingStartPoint.Y + image.Location.Y, image.Width, image.Height); ImageRenderer = new ImageRenderer() { PixbufRepository = pixbufRepository, DesignMode = true }; }
public override void CreateNewControl(SectionView sectionView) { var startPoint = sectionView.PointInSectionByAbsolutePoint (designService.StartPressPoint.X, designService.StartPressPoint.Y); MonoReports.Model.Controls.Image img = new MonoReports.Model.Controls.Image(){ Location = new MonoReports.Model.Point (startPoint.X, startPoint.Y), Width = 50, Height=50}; ImageView imageView = sectionView.CreateControlView (img) as ImageView; sectionView.Section.Controls.Add (img); imageView.ParentSection = sectionView; designService.SelectedControl = imageView; }
public override void CreateNewControl(SectionView sectionView) { var startPoint = sectionView.PointInSectionByAbsolutePoint(designService.StartPressPoint.X, designService.StartPressPoint.Y); MonoReports.Model.Controls.Image img = new MonoReports.Model.Controls.Image() { Location = new MonoReports.Model.Point(startPoint.X, startPoint.Y), Width = 50, Height = 50 }; ImageView imageView = sectionView.CreateControlView(img) as ImageView; sectionView.Section.Controls.Add(img); imageView.ParentSection = sectionView; designService.SelectedControl = imageView; }
public override ControlViewBase CreateNewControl(SectionView sectionView) { var startPoint = sectionView.PointInSectionByAbsolutePoint (designService.StartPressPoint.X, designService.StartPressPoint.Y); MonoReports.Model.Controls.Image img = new MonoReports.Model.Controls.Image(){ Location = new MonoReports.Model.Point (startPoint.X, startPoint.Y), Width = 2.cm(), Height=1.cm()}; return AddControl(sectionView,img); }