标题:播放器里的代码
取消只看楼主
x334455
Rank: 1
等 级:新手上路
帖 子:19
专家分:0
注 册:2008-10-23
结帖率:100%
 问题点数:0 回复次数:0 
播放器里的代码
这是播放器里的代码  谁帮我解释下
 private int num_ctl_banks = 1;
 private int num_ctl_lab_text = 0;
private void timer3_Tick(object sender, EventArgs e)
        {
            
                if (num_ctl_banks == 1)
                {
                    lab_mp3_name.Text = getBanks(num_ctl_lab_text) + axWindowsMediaPlayer1.currentMedia.name;
                    if (num_ctl_lab_text == 5)
                    {
                        num_ctl_banks = 2;
                        return;
                    }
                    num_ctl_lab_text++;
                }

                if (num_ctl_banks == 2)
                {
                    lab_mp3_name.Text = getBanks(num_ctl_lab_text)  + axWindowsMediaPlayer1.currentMedia.name;
                    if (num_ctl_lab_text == 0)
                    {

                        num_ctl_banks = 3;
                        return;
                    }
                    num_ctl_lab_text--;
                }

                if (num_ctl_banks == 3)
                {
                    lab_mp3_name.Text = axWindowsMediaPlayer1.currentMedia.name + getBanks(num_ctl_lab_text);
                    if (num_ctl_lab_text == 5)
                    {

                        num_ctl_banks = 4;
                        return;
                    }
                    num_ctl_lab_text++;
                }

                if (num_ctl_banks == 4)
                {
                    lab_mp3_name.Text =  axWindowsMediaPlayer1.currentMedia.name + getBanks(num_ctl_lab_text);
                    if (num_ctl_lab_text == 0)
                    {

                        num_ctl_banks = 1;
                        return;
                    }
                    num_ctl_lab_text--;
                }
           
        }
搜索更多相关主题的帖子: 代码 解释 
2008-10-28 18:24



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-241141-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.214179 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved