| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 554 人关注过本帖
标题:播放器里的代码
只看楼主 加入收藏
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
快速回复:播放器里的代码
数据加载中...
 
   



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

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