Frm_Screen.cs
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
namespace PlayApparatus
{
public partial class Frm_Screen : Form
{
public Frm_Screen()
{
InitializeComponent();
}
#region 公共变量
FrmClass Cla_FrmClass = new FrmClass();
public static double Example_frame = 0;//帧
public static int Example_PauseMove = 0;
#endregion
#region "显示"窗体接收的消息
/// <summary>
/// "显示"窗体接收的消息
/// </summary>
/// <param Sign="int">标识</param>
/// <param Tem_Str="string">播放状态</param>
/// <param F_Main="Form">播放窗体</param>
public void FrmMessage(int Sign, string Tem_Str,Form F_Main)
{
switch (Sign)
{
case 0://获取目录并播放
{
axWindowsMediaPlayer1.URL = Tem_Str;
axWindowsMediaPlayer1.Ctlcontrols.play();
((Frm_Play)F_Main).timer_ShowTime.Interval = 100;
((Frm_Play)F_Main).timer_ShowTime.Enabled = true;
Example_PauseMove = 0;
if (FrmClass.Example_PlayPath.Substring(Tem_Str.LastIndexOf("."), Tem_Str.Length - Tem_Str.LastIndexOf(".")).ToLower() != ".mp3".ToLower())
{
FrmClass.Example_ScreenShow = false;
this.Show();
if (axWindowsMediaPlayer1.currentMedia.duration == 0)
{
timer1.Interval = 50;
timer1.Enabled = true;
}
}
else
this.Hide();
break;
}
case 1://暂停
{
Example_frame = axWindowsMediaPlayer1.Ctlcontrols.currentPosition;
axWindowsMediaPlayer1.Ctlcontrols.pause();
((Frm_Play)F_Main).timer_ShowTime.Interval = 100;
后面还有 128 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
