Exemplo n.º 1
0
        public WordRain()
        {
            this.InitializeComponent();
            base.SetStyle(ControlStyles.UserPaint, true);
            base.SetStyle(ControlStyles.AllPaintingInWmPaint, true);
            base.SetStyle(ControlStyles.OptimizedDoubleBuffer, true);
            base.SetStyle(ControlStyles.ResizeRedraw, true);
            base.SetStyle(ControlStyles.Selectable, true);
            this.BackColor  = Color.Black;
            this.m_charlist = new ArrayList();
            WordInfo wordInfo = new WordInfo();

            wordInfo.SetValue();
            this.m_charlist.Add(wordInfo);
            this.m_sorter = new WordInfoSorter();
            string[] c = new string[]
            {
                "0",
                "1",
                "2",
                "3",
                "4",
                "5",
                "6",
                "7",
                "8",
                "9"
            };
            this.m_selectlist        = new ArrayList(c);
            this.m_random            = new Random();
            this.m_timer             = new Timer();
            this.m_newtimer          = new Timer();
            this.m_timer.Interval    = 10;
            this.m_newtimer.Interval = 50;
            this.m_timer.Enabled     = true;
            this.m_newtimer.Enabled  = true;
            this.m_timer.Tick       += new EventHandler(this.m_timer_Tick);
            this.m_newtimer.Tick    += new EventHandler(this.m_newtimer_Tick);
        }