锐腾搅拌上料功能
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.1 KiB

5 months ago
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Windows.Forms;
  9. namespace ICSSoft.Frame.APP
  10. {
  11. public partial class FormICSMedia : Form
  12. {
  13. public FormICSMedia(string fileName)
  14. {
  15. InitializeComponent();
  16. this.MaximumSize = new Size(Screen.PrimaryScreen.WorkingArea.Width, Screen.PrimaryScreen.WorkingArea.Height);
  17. this.WindowState = FormWindowState.Maximized;
  18. if (!string.IsNullOrEmpty(fileName))
  19. {
  20. axWindowsMediaPlayer1.windowlessVideo = false; //设为false后双击屏幕可以全屏
  21. //axWindowsMediaPlayer.fullScreen = true; //设播放器全屏播放
  22. axWindowsMediaPlayer1.URL = fileName;
  23. //axWindowsMediaPlayer.Ctlcontrols.play(); //播放
  24. //axWindowsMediaPlayer.Ctlcontrols.stop(); //停止
  25. //axWindowsMediaPlayer.Ctlcontrols.pause(); //暂停
  26. }
  27. }
  28. }
  29. }