Ejemplo n.º 1
0
        public MarqueeLabel(EPCanvas parent)
        {
            UseCompatibleTextRendering = true;
            TextAlign    = ContentAlignment.MiddleCenter;
            AutoSize     = false;
            AutoEllipsis = false;
            MaximumSize  = new Size(8888, 0);

            timer          = new Timer();
            timer.Interval = 100;
            timer.Tick    += new EventHandler(Timer_Tick);
            timer.Start();
            this.parent = parent;
        }
Ejemplo n.º 2
0
        private void initialCavans()
        {
            CanvasMain             = new EPCanvas();
            CanvasMain.Size        = new Size(526, 382);
            CanvasMain.Location    = new Point(140, 81);
            CanvasMain.AutoScroll  = true;
            CanvasMain.BorderStyle = BorderStyle.FixedSingle;
            CanvasMain.Dock        = DockStyle.Fill;
            this.panel5.Controls.Add(CanvasMain);

            CanvasMain.Kernel.SelectedShapesChanged    += new EventHandler(Kernel_SelectedShapesChanged);
            CanvasMain.Kernel.PropertyCollectorChanged += new EventHandler(Kernel_PropertyCollectorChanged);
            CanvasMain.Kernel.ShapesListChangedChanged += new EventHandler(Kernel_ShapesListChangedChanged);
        }
Ejemplo n.º 3
0
        public RectShape(EPKernel container, FillableProperty pro, EPCanvas p, AdItemType rt)
            : this(container, pro)
        {
            parent   = p;
            ItemType = rt;

            switch (ItemType)
            {
            case AdItemType.Video:
                Prop = new Video();
                break;

            case AdItemType.Picture:
                Prop = new Picture();
                break;

            case AdItemType.Subtitle:
                Prop = new Subtitle();
                break;

            default:
                break;
            }
        }
Ejemplo n.º 4
0
 public EPKernel(Size bitmapSize, EPCanvas parent)
     : this(new Bitmap(bitmapSize.Width, bitmapSize.Height))
 {
     this.parent = parent;
 }