資源簡介
自己無聊時用c#作的小作品,僅供大家參考與交流!

代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Linq;
using?System.Text;
using?System.Windows.Forms;
using?System.IO;
using?Media;
using?System.Runtime.InteropServices;
namespace?WindowsFormsApplication36
{
????
????public?partial?class?Charmyin?:?Form
????{
????????bool?is_play?=?false;
????????private?string?currentmedia?=?““;
????????private?string[]?playList?=?new?string[10000];
????????private?int?numOfMusic?=?0;
????????Media.MediaPlay?abc?=?new?Media.MediaPlay();
????????Media.Sound?sound?=?new?Media.Sound();
????????string?currenttime?=?“a“;
????????string?medialength?=?“b“;
????????string?is_paused?=?“false“;
????????bool?del_same?=?false;
????????
??????
????????public?Charmyin()
????????{
???????????
????????????InitializeComponent();
????????????this.skinEngine1.SkinFile?=?“SteelBlue.ssk“;//皮膚
???????????
????????}
????????private?void?AddFile(string?path)//歌曲路徑數組
????????{
????????????if?(numOfMusic?100000)
????????????{
????????????????numOfMusic++;
????????????????playList[numOfMusic]?=?“\““+path+“\““;
????????????}
????????}
??????
????????private?void?button2_Click(object?sender?EventArgs?e)//add?files
????????{
???????
??????????
????????????if?(this.openFileDialog1.ShowDialog()?==?DialogResult.OK)
????????????{
????????????????foreach(string?a?in?openFileDialog1.FileNames)
????????????????{
???????????????????????
???????????????????????FileInfo?f?=?new?FileInfo(a);
???????????????????????AddFile(f.FullName);
???????????????????????this.listBox1.Items.Add(f.Name);
????????????????}
????????????}
???????????
????????}
?#region?volumn?control
???????
????????int?count?=?5;
????????uint?i?=?0x33333333;
????????private?void?button3_Click(object?sender?EventArgs?e)
????????{
????????????if?(count?!=?5)
????????????{
????????????????count++;
????????????????sound.SoundIncrease(i);
????????????????label3.Text?=?count.ToString()?+?“/5“;
????????????}
????????}
????????private?void?button4_Click(object?sender?EventArgs?e)
????????{
????????????if?(count?!=?0)
????????????{
????????????????count--;
????????????????sound.SoundDecrease(i);
????????????????label3.Text?=?count.ToString()+“/5“;
????????????}
????????}
?#endregion
?#region?play?control
????????private?void?button5_Click(object?sender?EventArgs?e)//暫停
????????{
????????????//if?()
????????????//{
????????????if?(is_play)
????????????{
????????????????abc.PauseMedia(currentmedia);
????????????????暫停.Text?=?“繼續“;
????????????????is_paused?=?“true“;
????????????????is_play?=?false;
????????????}
????????????else?
????????????{
???????????????????if(is_paused?==?“true“)
????????????????????{
????????????????????????is_play?=?true;
????????????????????????abc.ResumeMedia(currentmedia);
????????????????????????暫停.Text?=?“暫停“;
???????????????????????
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件??????10536??2009-08-19?11:54??播放器代碼\Main.txt
?????文件??????15360??2009-08-14?10:56??播放器代碼\symble?musicpla
?????文件?????274432??2009-08-19?09:19??播放器代碼\symble?musicpla
?????文件??????32256??2009-08-19?09:19??播放器代碼\symble?musicpla
?????文件??????14328??2009-08-19?09:18??播放器代碼\symble?musicpla
?????文件????????490??2007-07-21?01:33??播放器代碼\symble?musicpla
?????文件??????19968??2009-08-14?10:56??播放器代碼\symble?musicpla
?????文件?????516096??2006-08-18?11:50??播放器代碼\symble?musicpla
?????文件??????36864??2004-03-26?13:32??播放器代碼\symble?musicpla
?????文件??????31327??2006-03-22?05:59??播放器代碼\symble?musicpla
?????文件??????15360??2009-08-06?09:45??播放器代碼\WindowsFormsApplication36\bin\Debug\AxInterop.MSACAL.dll
?????文件??????61440??2008-10-31?23:00??播放器代碼\WindowsFormsApplication36\bin\Debug\AxInterop.WMPLib.dll
?????文件?????274944??2009-08-19?09:18??播放器代碼\WindowsFormsApplication36\bin\Debug\Charmyin.exe
?????文件??????34304??2009-08-19?09:18??播放器代碼\WindowsFormsApplication36\bin\Debug\Charmyin.pdb
?????文件??????14328??2009-08-19?09:18??播放器代碼\WindowsFormsApplication36\bin\Debug\Charmyin.vshost.exe
?????文件????????490??2007-07-21?01:33??播放器代碼\WindowsFormsApplication36\bin\Debug\Charmyin.vshost.exe.manifest
?????文件??????50635??2006-03-21?14:11??播放器代碼\WindowsFormsApplication36\bin\Debug\diamondblue.gif
?????文件??????16021??2006-03-22?12:25??播放器代碼\WindowsFormsApplication36\bin\Debug\DiamondBlue.ssk
?????文件??????19968??2009-08-06?09:45??播放器代碼\WindowsFormsApplication36\bin\Debug\Interop.MSACAL.dll
?????文件?????274432??2008-11-18?14:28??播放器代碼\WindowsFormsApplication36\bin\Debug\Interop.WMPLib.dll
?????文件?????516096??2006-08-18?11:50??播放器代碼\WindowsFormsApplication36\bin\Debug\IrisSkin2.dll
?????文件??????35567??2006-03-21?14:16??播放器代碼\WindowsFormsApplication36\bin\Debug\macos.gif
?????文件??????15156??2006-03-22?05:55??播放器代碼\WindowsFormsApplication36\bin\Debug\MacOS.ssk
?????文件??????36864??2004-03-26?13:32??播放器代碼\WindowsFormsApplication36\bin\Debug\Media.dll
?????文件??????43246??2004-03-26?13:32??播放器代碼\WindowsFormsApplication36\bin\Debug\Media.xm
?????文件??????85809??2006-03-22?23:26??播放器代碼\WindowsFormsApplication36\bin\Debug\steelblue.gif
?????文件??????31327??2006-03-22?05:59??播放器代碼\WindowsFormsApplication36\bin\Debug\SteelBlue.ssk
?????文件??????52479??2006-03-22?11:20??播放器代碼\WindowsFormsApplication36\bin\Debug\wave.gif
?????文件??????47607??2006-07-13?23:30??播放器代碼\WindowsFormsApplication36\bin\Debug\Wave.ssk
?????文件??????43378??2006-03-22?06:33??播放器代碼\WindowsFormsApplication36\bin\Debug\WaveColor1.ssk
............此處省略60個文件信息
- 上一篇:event-b language經典教材
- 下一篇:編譯原理賦值語句的翻譯
評論
共有 條評論