예제 #1
0
        public dlTwitchDashboard()
        {
            InitializeComponent();
            SetStyle(ControlStyles.UserPaint, true);
            SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);

            var updateUi = new Timer();
            updateUi.Interval = 20;
            updateUi.Tick += new EventHandler(updateUi_Tick);
            updateUi.Start();
            dsh = new ucDashboard(Color.FromArgb(5, 5, 5));
            dsh.Dock = DockStyle.Fill;
            Controls.Add(dsh);

            this.StartPosition = FormStartPosition.CenterScreen;
        }
예제 #2
0
        public dlTwitchDashboard()
        {
            InitializeComponent();
            SetStyle(ControlStyles.UserPaint, true);
            SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            SetStyle(ControlStyles.AllPaintingInWmPaint, true);

            var updateUi = new Timer();

            updateUi.Interval = 20;
            updateUi.Tick    += new EventHandler(updateUi_Tick);
            updateUi.Start();
            dsh      = new ucDashboard(Color.FromArgb(5, 5, 5));
            dsh.Dock = DockStyle.Fill;
            Controls.Add(dsh);

            this.StartPosition = FormStartPosition.CenterScreen;
        }