Form1.cs
(开头部分) 31KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.IO;
using System.Xml;
using System.Xml.XPath;
namespace kd播放器
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
playlist = new string[1000];
numofsing = 0;
type = 0;
flag = false;
this.skinEngine1.SkinFile = "RealOne.ssk";//定义FORM1 窗体样式
}
public Form2 frm2 = new Form2();
private int delete()//删除一首 右键菜单删除项调用此函数
{
int selectnum = listBox1.SelectedIndex;
listBox1.Items.RemoveAt(selectnum);//删除选中的一项
for (int i = selectnum; i <= numofsing - 1; i++)
{
playlist[i] = playlist[i + 1];//数据移位 用数组盛放数据
} numofsing--;
axWindowsMediaPlayer1.Ctlcontrols.stop();
currentplay++;
if (currentplay >= numofsing)
{
currentplay = 0;
}
XmlDocument MeunXML = new XmlDocument();
MeunXML.Load("1.xml");
XmlNode root = MeunXML.DocumentElement;
root.SelectNodes("songs")[0].RemoveChild(root.SelectNodes("songs")[0].SelectNodes("songs")[selectnum]);
MeunXML.Save("1.xml");
if (selectnum > 0)
{
play(selectnum - 1);
listBox1.SelectedIndex = selectnum - 1;
}
if (selectnum == 0)
{
if (numofsing >= 1)
{
play(selectnum);
listBox1.SelectedIndex = selectnum;
后面还有 924 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
