Sysnet.TouchScreen/View/module/moveplayMainView.xaml.cs
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Windows.Threading;
namespace Sysnet.TouchScreen.View.module
{
/// <summary>
/// moveplayMainView.xaml 的交互逻辑
/// </summary>
public partial class moveplayMainView : UserControl
{
public moveplayMainView()
{
InitializeComponent();
string wordDocument = this.getfile()[0];
if (string.IsNullOrEmpty(wordDocument) || !File.Exists(wordDocument))
{
MessageBox.Show(@"文件不存在,请核对文档目录(" + Directory.GetCurrentDirectory() + @"\touchscreen\Videos)中的媒体文件!!");//C:\Users\Public\touchscreen\Videos
}
else
{
//MessageBox.Show(wordDocument);
this.videoScreenMediaElement.Source = new Uri(wordDocument, UriKind.Relative);
// playSound(wordDocument);
}
tmrProgress = new DispatcherTimer();
//设置计时器的时间间隔为1秒
tmrProgress.Interval = new TimeSpan(0, 0, 1);
//计时器触发事件处理
tmrProgress.Tick += SetDisplayMessage;
SetImageForMediaElement();
if (!tmrProgress.IsEnabled)
{
tmrProgress.Start();
}
videoScreenMediaElement.Play();
}
private void playSound(string url)
{
BgMusic bm = new BgMusic();
bm.BgMusicPath = url;
后面还有 156 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
