Exemple #1
0
        public EpgControl()
        {
            this.BackColor = Color.FromArgb(0xf5, 0xf5, 0xf5);

            _epgTimeControl = new EpgTimeControl();
            _epgTimeControl.Location = new Point(107, 3);
            _epgTimeControl.Size = new Size(this.Width - _epgTimeControl.Left, 15);
            this.Controls.Add(_epgTimeControl);

            _epgChannelsControl = new EpgChannelsControl();
            _epgChannelsControl.Location = new Point(3, _epgTimeControl.Height + 3);
            _epgChannelsControl.Size = new Size(100, this.Height - _epgChannelsControl.Top - 18);
            this.Controls.Add(_epgChannelsControl);

            _epgProgramsControl = new EpgProgramsControl();
            _epgProgramsControl.Location = new Point(107, _epgTimeControl.Height + 3);
            _epgProgramsControl.Size = new Size(this.Width - _epgProgramsControl.Left, this.Height - _epgProgramsControl.Top);
            _epgProgramsControl.ScrollPositionChanged += _epgProgramsControl_ScrollPositionChanged;
            _epgProgramsControl.ProgramClicked += _epgProgramsControl_ProgramClicked;
            _epgProgramsControl.ProgramContextMenu += _epgProgramsControl_ProgramContextMenu;
            this.Controls.Add(_epgProgramsControl);

            _cursorTimer = new Timer();
            _cursorTimer.Tick += _cursorTimer_Tick;
            _cursorTimer.Interval = 5000;
            _cursorTimer.Start();
        }
Exemple #2
0
        public EpgControl()
        {
            this.BackColor = Color.FromArgb(0xf5, 0xf5, 0xf5);

            _epgTimeControl          = new EpgTimeControl();
            _epgTimeControl.Location = new Point(107, 3);
            _epgTimeControl.Size     = new Size(this.Width - _epgTimeControl.Left, 15);
            this.Controls.Add(_epgTimeControl);

            _epgChannelsControl          = new EpgChannelsControl();
            _epgChannelsControl.Location = new Point(3, _epgTimeControl.Height + 3);
            _epgChannelsControl.Size     = new Size(100, this.Height - _epgChannelsControl.Top - 18);
            this.Controls.Add(_epgChannelsControl);

            _epgProgramsControl          = new EpgProgramsControl();
            _epgProgramsControl.Location = new Point(107, _epgTimeControl.Height + 3);
            _epgProgramsControl.Size     = new Size(this.Width - _epgProgramsControl.Left, this.Height - _epgProgramsControl.Top);
            _epgProgramsControl.ScrollPositionChanged += _epgProgramsControl_ScrollPositionChanged;
            _epgProgramsControl.ProgramClicked        += _epgProgramsControl_ProgramClicked;
            _epgProgramsControl.ProgramContextMenu    += _epgProgramsControl_ProgramContextMenu;
            this.Controls.Add(_epgProgramsControl);

            _cursorTimer          = new Timer();
            _cursorTimer.Tick    += _cursorTimer_Tick;
            _cursorTimer.Interval = 5000;
            _cursorTimer.Start();
        }