Beispiel #1
0
        private void timerMessage_Tick(object sender, EventArgs e)
        {
            lblTester.SetBounds(x, y, 1, 1);
            x--;
            switch (Properties.Settings.Default.Language)
            {
            case 0:
                if (x <= -700)
                {
                    int r = WMessageRnd.Next(WMessageEN.Count);
                    lblTester.Text = (string)WMessageEN[r];
                    x = 920;
                }
                break;

            case 1:
                if (x <= -700)
                {
                    int r = WMessageRnd.Next(WMessageES.Count);
                    lblTester.Text = (string)WMessageES[r];
                    x = 920;
                }
                break;

            case 2:
                if (x <= -700)
                {
                    int r = WMessageRnd.Next(WMessagePR.Count);
                    lblTester.Text = (string)WMessagePR[r];
                    x = 920;
                }
                break;
            }
        }
Beispiel #2
0
        private void formBinds_Load(object sender, EventArgs e)
        {
            sponsorBanner2.Image = sponsorBannerPNG;
            Opacity = Properties.Settings.Default.Opacity;
            Language();
            timerMessage.Enabled = true;
            timerMessage.Start();
            switch (Properties.Settings.Default.Language)
            {
            case 0:
                int r = WMessageRnd.Next(WMessageEN.Count);
                lblTester.Text = (string)WMessageEN[r];
                break;

            case 1:
                r = WMessageRnd.Next(WMessageES.Count);
                lblTester.Text = (string)WMessageES[r];
                break;

            case 2:
                r = WMessageRnd.Next(WMessagePR.Count);
                lblTester.Text = (string)WMessagePR[r];
                break;
            }
            lblTester.AutoSize = true;
            lblTester.Location = new Point(920, 9);
        }