Browse Source

刻录文件

master
胡超1 1 year ago
parent
commit
1a75cdc686
  1. 9
      CPF_Cef/AksVideoPlayer.cs
  2. 8
      CPF_Cef/FrmMain.cs
  3. 4
      CPF_Cef/MainModel.cs

9
CPF_Cef/AksVideoPlayer.cs

@ -25,6 +25,8 @@ namespace AKS.EnterpriseLibrary.WebBrowser
private VideoView vplayer = null; private VideoView vplayer = null;
public AksVideoPlayer(Window window, string _videoTitle,string _url) public AksVideoPlayer(Window window, string _videoTitle,string _url)
{ {
//注册gb2312
Encoding.RegisterProvider(CodePagesEncodingProvider.Instance);
vplayer = new VideoView vplayer = new VideoView
{ {
Name = "player", Name = "player",
@ -40,13 +42,6 @@ namespace AKS.EnterpriseLibrary.WebBrowser
window.Children.Add(this); window.Children.Add(this);
mask.TransitionValue(a => a.Background, "0,0,0,100", TimeSpan.FromSeconds(0.3), null, AnimateMode.Linear); mask.TransitionValue(a => a.Background, "0,0,0,100", TimeSpan.FromSeconds(0.3), null, AnimateMode.Linear);
//this.TransitionValue(a => a.MarginTop, 100, TimeSpan.FromSeconds(0.3), new PowerEase { }, AnimateMode.EaseOut); //this.TransitionValue(a => a.MarginTop, 100, TimeSpan.FromSeconds(0.3), new PowerEase { }, AnimateMode.EaseOut);
mask.MouseDown += Mask_MouseDown;
}
private void Mask_MouseDown(object sender, MouseButtonEventArgs e)
{
window.DragMove();
} }
private Window window; private Window window;

8
CPF_Cef/FrmMain.cs

@ -18,10 +18,10 @@ namespace AKS.EnterpriseLibrary.WebBrowser
{ {
public class FrmMain : Window public class FrmMain : Window
{ {
public int w = 1080; //public int w = 1080;
public int h = 1920; //public int h = 1920;
//public int h = 1080; public int h = 1080;
//public int w = 1920; public int w = 1920;
protected override void InitializeComponent() protected override void InitializeComponent()
{ {

4
CPF_Cef/MainModel.cs

@ -57,7 +57,7 @@ namespace AKS.EnterpriseLibrary.WebBrowser
if (content != "ping" && !string.IsNullOrEmpty(content)) if (content != "ping" && !string.IsNullOrEmpty(content))
{ {
//检测服务是否启动 //检测服务是否启动
//StartShll(); StartShll();
//返回内容 //返回内容
string result = string.Empty; string result = string.Empty;
content = Base64str2(content); content = Base64str2(content);
@ -1183,7 +1183,7 @@ namespace AKS.EnterpriseLibrary.WebBrowser
//弹出光驱 eject /dev/cdrom //弹出光驱 eject /dev/cdrom
//刻录文件 wodim -v dev=/dev/cdrom blank=fast -data file1.txt file2.txt //刻录文件 wodim -v dev=/dev/cdrom blank=fast -data file1.txt file2.txt
//growisofs -Z /dev/cdrom -R -V "label" -iso-level 2 /path/to/files //growisofs -Z /dev/cdrom -R -V "label" -iso-level 2 /path/to/files
//growisofs -Z /dev/cdrom -R -V "VOLUME_LABEL" -iso-level 2 /path/to/files //growisofs -Z /dev/cdrom -R -V "Test" -iso-level 2 wwwroot
} }
return "{\"timestamp\":\"" + Utils.GetTimestamp() + "\",\"keycode\":\"" + param.code + "\",\"message\":\"seccse\",\"code\":\"200\",\"status\":true,\"data\":\"" + "刻录成功" + "\"}"; return "{\"timestamp\":\"" + Utils.GetTimestamp() + "\",\"keycode\":\"" + param.code + "\",\"message\":\"seccse\",\"code\":\"200\",\"status\":true,\"data\":\"" + "刻录成功" + "\"}";
} }

Loading…
Cancel
Save