Form1.h
上传用户:asa1698
上传日期:2022-01-15
资源大小:8015k
文件大小:41k
源码类别:

DVD

开发平台:

C#

  1. #pragma once
  2. #include<windows.h>
  3. #include"time.h"
  4. namespace DVD {
  5. using namespace System;
  6. using namespace System::ComponentModel;
  7. using namespace System::Collections;
  8. using namespace System::Windows::Forms;
  9. using namespace System::Data;
  10. using namespace System::Drawing;
  11. /// <summary>
  12. /// Form1 摘要
  13. ///
  14. /// 警告: 如果更改此类的名称,则需要更改
  15. ///          与此类所依赖的所有 .resx 文件关联的托管资源编译器工具的
  16. ///          “资源文件名”属性。否则,
  17. ///          设计器将不能与此窗体的关联
  18. ///          本地化资源正确交互。
  19. /// </summary>
  20. public ref class Form1 : public System::Windows::Forms::Form
  21. {
  22. public:
  23. Form1(void)
  24. {
  25. InitializeComponent();
  26. //
  27. //TODO: 在此处添加构造函数代码
  28. //
  29. }
  30. private: System::Windows::Forms::Timer^  timer1;
  31. public: 
  32. int volumeDVD;
  33. int RateDVD;//DVD碟片的总长
  34. int fasterlowerRate;//快进退的程度
  35. int Dishware;//碟片代号
  36. int pos;//标志 
  37. char * DishURL;//碟片路径
  38. private: System::Windows::Forms::Label^  label8;
  39. public: 
  40. private: System::Windows::Forms::LinkLabel^  linkLabel4;
  41. private: System::Windows::Forms::Label^  label7;
  42. private: System::Windows::Forms::Label^  label6;
  43. private: AxWMPLib::AxWindowsMediaPlayer^  myplayer;
  44.  int slowerRate;//快退的程度
  45. protected:
  46. /// <summary>
  47. /// 清理所有正在使用的资源。
  48. /// </summary>
  49. ~Form1()
  50. {
  51. if (components)
  52. {
  53. delete components;
  54. }
  55. }
  56. private: System::Windows::Forms::GroupBox^  groupBox2;
  57. private: System::Windows::Forms::PictureBox^  pictureBox1;
  58. private: System::Windows::Forms::GroupBox^  groupBox1;
  59. private: System::Windows::Forms::Button^  button3;
  60. private: System::Windows::Forms::Button^  button6;
  61. private: System::Windows::Forms::Button^  button5;
  62. private: System::Windows::Forms::Button^  button10;
  63. private: System::Windows::Forms::Button^  button9;
  64. private: System::Windows::Forms::Button^  button8;
  65. private: System::Windows::Forms::Button^  button7;
  66. private: System::Windows::Forms::GroupBox^  groupBox4;
  67. private: System::Windows::Forms::RadioButton^  radioButton6;
  68. private: System::Windows::Forms::Button^  button4;
  69. private: System::Windows::Forms::RadioButton^  radioButton5;
  70. private: System::Windows::Forms::RadioButton^  radioButton4;
  71. private: System::Windows::Forms::RadioButton^  radioButton3;
  72. private: System::Windows::Forms::RadioButton^  radioButton2;
  73. private: System::Windows::Forms::RadioButton^  radioButton1;
  74. private: System::Windows::Forms::GroupBox^  groupBox3;
  75. private: System::Windows::Forms::Button^  button2;
  76. private: System::Windows::Forms::Button^  button1;
  77. private: System::Windows::Forms::MenuStrip^  menuStrip1;
  78. private: System::Windows::Forms::ToolStripMenuItem^  退出ToolStripMenuItem;
  79. private: System::Windows::Forms::ToolStripMenuItem^  开始ToolStripMenuItem;
  80. private: System::Windows::Forms::ToolStripMenuItem^  开始ToolStripMenuItem1;
  81. private: System::Windows::Forms::ToolStripMenuItem^  开始ToolStripMenuItem2;
  82. private: System::Windows::Forms::ToolStripMenuItem^  暂停ToolStripMenuItem1;
  83. private: System::Windows::Forms::ToolStripMenuItem^  停止ToolStripMenuItem;
  84. private: System::Windows::Forms::ToolStripMenuItem^  快进ToolStripMenuItem;
  85. private: System::Windows::Forms::ToolStripMenuItem^  快退ToolStripMenuItem;
  86. private: System::Windows::Forms::ToolStripMenuItem^  上一曲ToolStripMenuItem;
  87. private: System::Windows::Forms::ToolStripMenuItem^  下一曲ToolStripMenuItem;
  88. private: System::Windows::Forms::ToolStripMenuItem^  暂停ToolStripMenuItem;
  89. private: System::Windows::Forms::ToolStripMenuItem^  增加ToolStripMenuItem;
  90. private: System::Windows::Forms::ToolStripMenuItem^  退出ToolStripMenuItem1;
  91. private: System::Windows::Forms::ToolStripMenuItem^  推出ToolStripMenuItem;
  92. private: System::Windows::Forms::ToolStripMenuItem^  减小ToolStripMenuItem;
  93. private: System::Windows::Forms::ToolStripMenuItem^  静音ToolStripMenuItem;
  94. private: System::Windows::Forms::GroupBox^  groupBox5;
  95. private: System::Windows::Forms::LinkLabel^  linkLabel1;
  96. private: System::Windows::Forms::Label^  label1;
  97. private: System::Windows::Forms::TrackBar^  trackBar1;
  98. private: System::Windows::Forms::Label^  label3;
  99. private: System::Windows::Forms::Label^  label4;
  100. private: System::Windows::Forms::TrackBar^  trackBar2;
  101. private: System::Windows::Forms::Label^  label2;
  102. private: System::Windows::Forms::LinkLabel^  linkLabel3;
  103. private: System::Windows::Forms::LinkLabel^  linkLabel2;
  104. private: System::Windows::Forms::Button^  button11;
  105. private: System::Windows::Forms::TextBox^  textBox1;
  106. private: System::Windows::Forms::Label^  label5;
  107. private: System::ComponentModel::IContainer^  components;
  108. protected: 
  109. private:
  110. /// <summary>
  111. /// 必需的设计器变量。
  112. /// </summary>
  113. #pragma region Windows Form Designer generated code
  114. /// <summary>
  115. /// 设计器支持所需的方法 - 不要
  116. /// 使用代码编辑器修改此方法的内容。
  117. /// </summary>
  118. void InitializeComponent(void)
  119. {
  120. this->components = (gcnew System::ComponentModel::Container());
  121. System::ComponentModel::ComponentResourceManager^  resources = (gcnew System::ComponentModel::ComponentResourceManager(Form1::typeid));
  122. this->groupBox2 = (gcnew System::Windows::Forms::GroupBox());
  123. this->button10 = (gcnew System::Windows::Forms::Button());
  124. this->button9 = (gcnew System::Windows::Forms::Button());
  125. this->button8 = (gcnew System::Windows::Forms::Button());
  126. this->button7 = (gcnew System::Windows::Forms::Button());
  127. this->button6 = (gcnew System::Windows::Forms::Button());
  128. this->button5 = (gcnew System::Windows::Forms::Button());
  129. this->button3 = (gcnew System::Windows::Forms::Button());
  130. this->groupBox1 = (gcnew System::Windows::Forms::GroupBox());
  131. this->pictureBox1 = (gcnew System::Windows::Forms::PictureBox());
  132. this->groupBox4 = (gcnew System::Windows::Forms::GroupBox());
  133. this->radioButton6 = (gcnew System::Windows::Forms::RadioButton());
  134. this->button4 = (gcnew System::Windows::Forms::Button());
  135. this->radioButton5 = (gcnew System::Windows::Forms::RadioButton());
  136. this->radioButton4 = (gcnew System::Windows::Forms::RadioButton());
  137. this->radioButton3 = (gcnew System::Windows::Forms::RadioButton());
  138. this->radioButton2 = (gcnew System::Windows::Forms::RadioButton());
  139. this->radioButton1 = (gcnew System::Windows::Forms::RadioButton());
  140. this->groupBox3 = (gcnew System::Windows::Forms::GroupBox());
  141. this->textBox1 = (gcnew System::Windows::Forms::TextBox());
  142. this->button11 = (gcnew System::Windows::Forms::Button());
  143. this->trackBar1 = (gcnew System::Windows::Forms::TrackBar());
  144. this->label4 = (gcnew System::Windows::Forms::Label());
  145. this->button2 = (gcnew System::Windows::Forms::Button());
  146. this->button1 = (gcnew System::Windows::Forms::Button());
  147. this->menuStrip1 = (gcnew System::Windows::Forms::MenuStrip());
  148. this->退出ToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
  149. this->开始ToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
  150. this->开始ToolStripMenuItem1 = (gcnew System::Windows::Forms::ToolStripMenuItem());
  151. this->开始ToolStripMenuItem2 = (gcnew System::Windows::Forms::ToolStripMenuItem());
  152. this->暂停ToolStripMenuItem1 = (gcnew System::Windows::Forms::ToolStripMenuItem());
  153. this->停止ToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
  154. this->快进ToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
  155. this->快退ToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
  156. this->上一曲ToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
  157. this->下一曲ToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
  158. this->暂停ToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
  159. this->增加ToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
  160. this->减小ToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
  161. this->静音ToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
  162. this->退出ToolStripMenuItem1 = (gcnew System::Windows::Forms::ToolStripMenuItem());
  163. this->推出ToolStripMenuItem = (gcnew System::Windows::Forms::ToolStripMenuItem());
  164. this->groupBox5 = (gcnew System::Windows::Forms::GroupBox());
  165. this->label8 = (gcnew System::Windows::Forms::Label());
  166. this->linkLabel4 = (gcnew System::Windows::Forms::LinkLabel());
  167. this->label7 = (gcnew System::Windows::Forms::Label());
  168. this->label6 = (gcnew System::Windows::Forms::Label());
  169. this->label5 = (gcnew System::Windows::Forms::Label());
  170. this->linkLabel3 = (gcnew System::Windows::Forms::LinkLabel());
  171. this->linkLabel2 = (gcnew System::Windows::Forms::LinkLabel());
  172. this->label2 = (gcnew System::Windows::Forms::Label());
  173. this->trackBar2 = (gcnew System::Windows::Forms::TrackBar());
  174. this->label3 = (gcnew System::Windows::Forms::Label());
  175. this->linkLabel1 = (gcnew System::Windows::Forms::LinkLabel());
  176. this->label1 = (gcnew System::Windows::Forms::Label());
  177. this->timer1 = (gcnew System::Windows::Forms::Timer(this->components));
  178. this->myplayer = (gcnew AxWMPLib::AxWindowsMediaPlayer());
  179. this->groupBox2->SuspendLayout();
  180. this->groupBox1->SuspendLayout();
  181. (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->pictureBox1))->BeginInit();
  182. this->groupBox4->SuspendLayout();
  183. this->groupBox3->SuspendLayout();
  184. (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->trackBar1))->BeginInit();
  185. this->menuStrip1->SuspendLayout();
  186. this->groupBox5->SuspendLayout();
  187. (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->trackBar2))->BeginInit();
  188. (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->myplayer))->BeginInit();
  189. this->SuspendLayout();
  190. // 
  191. // groupBox2
  192. // 
  193. this->groupBox2->Controls->Add(this->button10);
  194. this->groupBox2->Controls->Add(this->button9);
  195. this->groupBox2->Controls->Add(this->button8);
  196. this->groupBox2->Controls->Add(this->button7);
  197. this->groupBox2->Controls->Add(this->button6);
  198. this->groupBox2->Controls->Add(this->button5);
  199. this->groupBox2->Controls->Add(this->button3);
  200. resources->ApplyResources(this->groupBox2, L"groupBox2");
  201. this->groupBox2->Name = L"groupBox2";
  202. this->groupBox2->TabStop = false;
  203. this->groupBox2->ChangeUICues += gcnew System::Windows::Forms::UICuesEventHandler(this, &Form1::groupBox2_ChangeUICues);
  204. this->groupBox2->Enter += gcnew System::EventHandler(this, &Form1::groupBox2_Enter);
  205. // 
  206. // button10
  207. // 
  208. resources->ApplyResources(this->button10, L"button10");
  209. this->button10->Name = L"button10";
  210. this->button10->UseVisualStyleBackColor = true;
  211. this->button10->Click += gcnew System::EventHandler(this, &Form1::button10_Click);
  212. // 
  213. // button9
  214. // 
  215. resources->ApplyResources(this->button9, L"button9");
  216. this->button9->Name = L"button9";
  217. this->button9->UseVisualStyleBackColor = true;
  218. this->button9->Click += gcnew System::EventHandler(this, &Form1::button9_Click);
  219. // 
  220. // button8
  221. // 
  222. resources->ApplyResources(this->button8, L"button8");
  223. this->button8->Name = L"button8";
  224. this->button8->UseVisualStyleBackColor = true;
  225. this->button8->Click += gcnew System::EventHandler(this, &Form1::button8_Click);
  226. // 
  227. // button7
  228. // 
  229. resources->ApplyResources(this->button7, L"button7");
  230. this->button7->Name = L"button7";
  231. this->button7->UseVisualStyleBackColor = true;
  232. this->button7->Click += gcnew System::EventHandler(this, &Form1::button7_Click);
  233. // 
  234. // button6
  235. // 
  236. resources->ApplyResources(this->button6, L"button6");
  237. this->button6->Name = L"button6";
  238. this->button6->UseVisualStyleBackColor = true;
  239. this->button6->Click += gcnew System::EventHandler(this, &Form1::button6_Click);
  240. // 
  241. // button5
  242. // 
  243. resources->ApplyResources(this->button5, L"button5");
  244. this->button5->Name = L"button5";
  245. this->button5->UseVisualStyleBackColor = true;
  246. this->button5->Click += gcnew System::EventHandler(this, &Form1::button5_Click);
  247. // 
  248. // button3
  249. // 
  250. resources->ApplyResources(this->button3, L"button3");
  251. this->button3->Name = L"button3";
  252. this->button3->UseVisualStyleBackColor = true;
  253. this->button3->Click += gcnew System::EventHandler(this, &Form1::button3_Click);
  254. // 
  255. // groupBox1
  256. // 
  257. resources->ApplyResources(this->groupBox1, L"groupBox1");
  258. this->groupBox1->Controls->Add(this->pictureBox1);
  259. this->groupBox1->Name = L"groupBox1";
  260. this->groupBox1->TabStop = false;
  261. this->groupBox1->Enter += gcnew System::EventHandler(this, &Form1::groupBox1_Enter);
  262. // 
  263. // pictureBox1
  264. // 
  265. resources->ApplyResources(this->pictureBox1, L"pictureBox1");
  266. this->pictureBox1->Name = L"pictureBox1";
  267. this->pictureBox1->TabStop = false;
  268. this->pictureBox1->Click += gcnew System::EventHandler(this, &Form1::pictureBox1_Click);
  269. // 
  270. // groupBox4
  271. // 
  272. this->groupBox4->Controls->Add(this->radioButton6);
  273. this->groupBox4->Controls->Add(this->button4);
  274. this->groupBox4->Controls->Add(this->radioButton5);
  275. this->groupBox4->Controls->Add(this->radioButton4);
  276. this->groupBox4->Controls->Add(this->radioButton3);
  277. this->groupBox4->Controls->Add(this->radioButton2);
  278. this->groupBox4->Controls->Add(this->radioButton1);
  279. resources->ApplyResources(this->groupBox4, L"groupBox4");
  280. this->groupBox4->Name = L"groupBox4";
  281. this->groupBox4->TabStop = false;
  282. // 
  283. // radioButton6
  284. // 
  285. resources->ApplyResources(this->radioButton6, L"radioButton6");
  286. this->radioButton6->Name = L"radioButton6";
  287. this->radioButton6->TabStop = true;
  288. this->radioButton6->UseVisualStyleBackColor = true;
  289. // 
  290. // button4
  291. // 
  292. resources->ApplyResources(this->button4, L"button4");
  293. this->button4->Name = L"button4";
  294. this->button4->UseVisualStyleBackColor = true;
  295. this->button4->Click += gcnew System::EventHandler(this, &Form1::button4_Click);
  296. // 
  297. // radioButton5
  298. // 
  299. resources->ApplyResources(this->radioButton5, L"radioButton5");
  300. this->radioButton5->Name = L"radioButton5";
  301. this->radioButton5->TabStop = true;
  302. this->radioButton5->UseVisualStyleBackColor = true;
  303. // 
  304. // radioButton4
  305. // 
  306. resources->ApplyResources(this->radioButton4, L"radioButton4");
  307. this->radioButton4->Name = L"radioButton4";
  308. this->radioButton4->TabStop = true;
  309. this->radioButton4->UseVisualStyleBackColor = true;
  310. // 
  311. // radioButton3
  312. // 
  313. resources->ApplyResources(this->radioButton3, L"radioButton3");
  314. this->radioButton3->Name = L"radioButton3";
  315. this->radioButton3->TabStop = true;
  316. this->radioButton3->UseVisualStyleBackColor = true;
  317. // 
  318. // radioButton2
  319. // 
  320. resources->ApplyResources(this->radioButton2, L"radioButton2");
  321. this->radioButton2->Name = L"radioButton2";
  322. this->radioButton2->TabStop = true;
  323. this->radioButton2->UseVisualStyleBackColor = true;
  324. // 
  325. // radioButton1
  326. // 
  327. resources->ApplyResources(this->radioButton1, L"radioButton1");
  328. this->radioButton1->Name = L"radioButton1";
  329. this->radioButton1->TabStop = true;
  330. this->radioButton1->UseVisualStyleBackColor = true;
  331. // 
  332. // groupBox3
  333. // 
  334. this->groupBox3->BackColor = System::Drawing::SystemColors::Control;
  335. this->groupBox3->Controls->Add(this->textBox1);
  336. this->groupBox3->Controls->Add(this->button11);
  337. this->groupBox3->Controls->Add(this->trackBar1);
  338. this->groupBox3->Controls->Add(this->label4);
  339. this->groupBox3->Controls->Add(this->button2);
  340. this->groupBox3->Controls->Add(this->button1);
  341. resources->ApplyResources(this->groupBox3, L"groupBox3");
  342. this->groupBox3->Name = L"groupBox3";
  343. this->groupBox3->TabStop = false;
  344. // 
  345. // textBox1
  346. // 
  347. resources->ApplyResources(this->textBox1, L"textBox1");
  348. this->textBox1->Name = L"textBox1";
  349. // 
  350. // button11
  351. // 
  352. resources->ApplyResources(this->button11, L"button11");
  353. this->button11->Name = L"button11";
  354. this->button11->UseVisualStyleBackColor = true;
  355. this->button11->Click += gcnew System::EventHandler(this, &Form1::button11_Click_1);
  356. // 
  357. // trackBar1
  358. // 
  359. resources->ApplyResources(this->trackBar1, L"trackBar1");
  360. this->trackBar1->Name = L"trackBar1";
  361. this->trackBar1->Value = 5;
  362. this->trackBar1->MouseUp += gcnew System::Windows::Forms::MouseEventHandler(this, &Form1::trackBar1_MouseUp);
  363. // 
  364. // label4
  365. // 
  366. resources->ApplyResources(this->label4, L"label4");
  367. this->label4->Name = L"label4";
  368. // 
  369. // button2
  370. // 
  371. resources->ApplyResources(this->button2, L"button2");
  372. this->button2->Name = L"button2";
  373. this->button2->UseVisualStyleBackColor = true;
  374. this->button2->Click += gcnew System::EventHandler(this, &Form1::button2_Click);
  375. // 
  376. // button1
  377. // 
  378. resources->ApplyResources(this->button1, L"button1");
  379. this->button1->Name = L"button1";
  380. this->button1->UseVisualStyleBackColor = true;
  381. this->button1->Click += gcnew System::EventHandler(this, &Form1::button1_Click);
  382. // 
  383. // menuStrip1
  384. // 
  385. this->menuStrip1->Items->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(2) {this->退出ToolStripMenuItem, 
  386. this->退出ToolStripMenuItem1});
  387. resources->ApplyResources(this->menuStrip1, L"menuStrip1");
  388. this->menuStrip1->Name = L"menuStrip1";
  389. this->menuStrip1->ItemClicked += gcnew System::Windows::Forms::ToolStripItemClickedEventHandler(this, &Form1::menuStrip1_ItemClicked);
  390. // 
  391. // 退出ToolStripMenuItem
  392. // 
  393. this->退出ToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(3) {this->开始ToolStripMenuItem, 
  394. this->开始ToolStripMenuItem1, this->暂停ToolStripMenuItem});
  395. this->退出ToolStripMenuItem->Name = L"退出ToolStripMenuItem";
  396. resources->ApplyResources(this->退出ToolStripMenuItem, L"退出ToolStripMenuItem");
  397. // 
  398. // 开始ToolStripMenuItem
  399. // 
  400. this->开始ToolStripMenuItem->Name = L"开始ToolStripMenuItem";
  401. resources->ApplyResources(this->开始ToolStripMenuItem, L"开始ToolStripMenuItem");
  402. this->开始ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::开始ToolStripMenuItem_Click);
  403. // 
  404. // 开始ToolStripMenuItem1
  405. // 
  406. this->开始ToolStripMenuItem1->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(7) {this->开始ToolStripMenuItem2, 
  407. this->暂停ToolStripMenuItem1, this->停止ToolStripMenuItem, this->快进ToolStripMenuItem, this->快退ToolStripMenuItem, this->上一曲ToolStripMenuItem, 
  408. this->下一曲ToolStripMenuItem});
  409. this->开始ToolStripMenuItem1->Name = L"开始ToolStripMenuItem1";
  410. resources->ApplyResources(this->开始ToolStripMenuItem1, L"开始ToolStripMenuItem1");
  411. // 
  412. // 开始ToolStripMenuItem2
  413. // 
  414. this->开始ToolStripMenuItem2->Name = L"开始ToolStripMenuItem2";
  415. resources->ApplyResources(this->开始ToolStripMenuItem2, L"开始ToolStripMenuItem2");
  416. this->开始ToolStripMenuItem2->Click += gcnew System::EventHandler(this, &Form1::开始ToolStripMenuItem2_Click);
  417. // 
  418. // 暂停ToolStripMenuItem1
  419. // 
  420. this->暂停ToolStripMenuItem1->Name = L"暂停ToolStripMenuItem1";
  421. resources->ApplyResources(this->暂停ToolStripMenuItem1, L"暂停ToolStripMenuItem1");
  422. this->暂停ToolStripMenuItem1->Click += gcnew System::EventHandler(this, &Form1::暂停ToolStripMenuItem1_Click);
  423. // 
  424. // 停止ToolStripMenuItem
  425. // 
  426. this->停止ToolStripMenuItem->Name = L"停止ToolStripMenuItem";
  427. resources->ApplyResources(this->停止ToolStripMenuItem, L"停止ToolStripMenuItem");
  428. this->停止ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::停止ToolStripMenuItem_Click);
  429. // 
  430. // 快进ToolStripMenuItem
  431. // 
  432. this->快进ToolStripMenuItem->Name = L"快进ToolStripMenuItem";
  433. resources->ApplyResources(this->快进ToolStripMenuItem, L"快进ToolStripMenuItem");
  434. this->快进ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::快进ToolStripMenuItem_Click);
  435. // 
  436. // 快退ToolStripMenuItem
  437. // 
  438. this->快退ToolStripMenuItem->Name = L"快退ToolStripMenuItem";
  439. resources->ApplyResources(this->快退ToolStripMenuItem, L"快退ToolStripMenuItem");
  440. this->快退ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::快退ToolStripMenuItem_Click);
  441. // 
  442. // 上一曲ToolStripMenuItem
  443. // 
  444. this->上一曲ToolStripMenuItem->Name = L"上一曲ToolStripMenuItem";
  445. resources->ApplyResources(this->上一曲ToolStripMenuItem, L"上一曲ToolStripMenuItem");
  446. this->上一曲ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::上一曲ToolStripMenuItem_Click);
  447. // 
  448. // 下一曲ToolStripMenuItem
  449. // 
  450. this->下一曲ToolStripMenuItem->Name = L"下一曲ToolStripMenuItem";
  451. resources->ApplyResources(this->下一曲ToolStripMenuItem, L"下一曲ToolStripMenuItem");
  452. this->下一曲ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::下一曲ToolStripMenuItem_Click);
  453. // 
  454. // 暂停ToolStripMenuItem
  455. // 
  456. this->暂停ToolStripMenuItem->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(3) {this->增加ToolStripMenuItem, 
  457. this->减小ToolStripMenuItem, this->静音ToolStripMenuItem});
  458. this->暂停ToolStripMenuItem->Name = L"暂停ToolStripMenuItem";
  459. resources->ApplyResources(this->暂停ToolStripMenuItem, L"暂停ToolStripMenuItem");
  460. // 
  461. // 增加ToolStripMenuItem
  462. // 
  463. this->增加ToolStripMenuItem->Name = L"增加ToolStripMenuItem";
  464. resources->ApplyResources(this->增加ToolStripMenuItem, L"增加ToolStripMenuItem");
  465. this->增加ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::增加ToolStripMenuItem_Click);
  466. // 
  467. // 减小ToolStripMenuItem
  468. // 
  469. this->减小ToolStripMenuItem->Name = L"减小ToolStripMenuItem";
  470. resources->ApplyResources(this->减小ToolStripMenuItem, L"减小ToolStripMenuItem");
  471. this->减小ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::减小ToolStripMenuItem_Click);
  472. // 
  473. // 静音ToolStripMenuItem
  474. // 
  475. this->静音ToolStripMenuItem->Name = L"静音ToolStripMenuItem";
  476. resources->ApplyResources(this->静音ToolStripMenuItem, L"静音ToolStripMenuItem");
  477. this->静音ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::静音ToolStripMenuItem_Click);
  478. // 
  479. // 退出ToolStripMenuItem1
  480. // 
  481. this->退出ToolStripMenuItem1->DropDownItems->AddRange(gcnew cli::array< System::Windows::Forms::ToolStripItem^  >(1) {this->推出ToolStripMenuItem});
  482. this->退出ToolStripMenuItem1->Name = L"退出ToolStripMenuItem1";
  483. resources->ApplyResources(this->退出ToolStripMenuItem1, L"退出ToolStripMenuItem1");
  484. // 
  485. // 推出ToolStripMenuItem
  486. // 
  487. this->推出ToolStripMenuItem->Name = L"推出ToolStripMenuItem";
  488. resources->ApplyResources(this->推出ToolStripMenuItem, L"推出ToolStripMenuItem");
  489. this->推出ToolStripMenuItem->Click += gcnew System::EventHandler(this, &Form1::推出ToolStripMenuItem_Click);
  490. // 
  491. // groupBox5
  492. // 
  493. this->groupBox5->Controls->Add(this->myplayer);
  494. this->groupBox5->Controls->Add(this->label8);
  495. this->groupBox5->Controls->Add(this->linkLabel4);
  496. this->groupBox5->Controls->Add(this->label7);
  497. this->groupBox5->Controls->Add(this->label6);
  498. this->groupBox5->Controls->Add(this->label5);
  499. this->groupBox5->Controls->Add(this->linkLabel3);
  500. this->groupBox5->Controls->Add(this->linkLabel2);
  501. this->groupBox5->Controls->Add(this->label2);
  502. this->groupBox5->Controls->Add(this->trackBar2);
  503. this->groupBox5->Controls->Add(this->label3);
  504. this->groupBox5->Controls->Add(this->linkLabel1);
  505. this->groupBox5->Controls->Add(this->label1);
  506. resources->ApplyResources(this->groupBox5, L"groupBox5");
  507. this->groupBox5->Name = L"groupBox5";
  508. this->groupBox5->TabStop = false;
  509. this->groupBox5->Enter += gcnew System::EventHandler(this, &Form1::groupBox5_Enter);
  510. // 
  511. // label8
  512. // 
  513. resources->ApplyResources(this->label8, L"label8");
  514. this->label8->Name = L"label8";
  515. // 
  516. // linkLabel4
  517. // 
  518. resources->ApplyResources(this->linkLabel4, L"linkLabel4");
  519. this->linkLabel4->LinkColor = System::Drawing::Color::Purple;
  520. this->linkLabel4->Name = L"linkLabel4";
  521. this->linkLabel4->TabStop = true;
  522. // 
  523. // label7
  524. // 
  525. resources->ApplyResources(this->label7, L"label7");
  526. this->label7->Name = L"label7";
  527. // 
  528. // label6
  529. // 
  530. resources->ApplyResources(this->label6, L"label6");
  531. this->label6->ForeColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(64)), static_cast<System::Int32>(static_cast<System::Byte>(0)), 
  532. static_cast<System::Int32>(static_cast<System::Byte>(64)));
  533. this->label6->Name = L"label6";
  534. // 
  535. // label5
  536. // 
  537. resources->ApplyResources(this->label5, L"label5");
  538. this->label5->Name = L"label5";
  539. // 
  540. // linkLabel3
  541. // 
  542. resources->ApplyResources(this->linkLabel3, L"linkLabel3");
  543. this->linkLabel3->LinkColor = System::Drawing::Color::Purple;
  544. this->linkLabel3->Name = L"linkLabel3";
  545. this->linkLabel3->TabStop = true;
  546. // 
  547. // linkLabel2
  548. // 
  549. resources->ApplyResources(this->linkLabel2, L"linkLabel2");
  550. this->linkLabel2->LinkColor = System::Drawing::Color::Purple;
  551. this->linkLabel2->Name = L"linkLabel2";
  552. // 
  553. // label2
  554. // 
  555. resources->ApplyResources(this->label2, L"label2");
  556. this->label2->ForeColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(64)), static_cast<System::Int32>(static_cast<System::Byte>(0)), 
  557. static_cast<System::Int32>(static_cast<System::Byte>(64)));
  558. this->label2->Name = L"label2";
  559. // 
  560. // trackBar2
  561. // 
  562. resources->ApplyResources(this->trackBar2, L"trackBar2");
  563. this->trackBar2->LargeChange = 1;
  564. this->trackBar2->Maximum = 100;
  565. this->trackBar2->Name = L"trackBar2";
  566. // 
  567. // label3
  568. // 
  569. resources->ApplyResources(this->label3, L"label3");
  570. this->label3->Name = L"label3";
  571. // 
  572. // linkLabel1
  573. // 
  574. resources->ApplyResources(this->linkLabel1, L"linkLabel1");
  575. this->linkLabel1->LinkColor = System::Drawing::Color::Purple;
  576. this->linkLabel1->Name = L"linkLabel1";
  577. this->linkLabel1->TabStop = true;
  578. // 
  579. // label1
  580. // 
  581. resources->ApplyResources(this->label1, L"label1");
  582. this->label1->ForeColor = System::Drawing::Color::FromArgb(static_cast<System::Int32>(static_cast<System::Byte>(64)), static_cast<System::Int32>(static_cast<System::Byte>(0)), 
  583. static_cast<System::Int32>(static_cast<System::Byte>(64)));
  584. this->label1->Name = L"label1";
  585. // 
  586. // timer1
  587. // 
  588. this->timer1->Interval = 1000;
  589. this->timer1->Tick += gcnew System::EventHandler(this, &Form1::timer1_Tick);
  590. // 
  591. // myplayer
  592. // 
  593. resources->ApplyResources(this->myplayer, L"myplayer");
  594. this->myplayer->Name = L"myplayer";
  595. this->myplayer->OcxState = (cli::safe_cast<System::Windows::Forms::AxHost::State^  >(resources->GetObject(L"myplayer.OcxState")));
  596. // 
  597. // Form1
  598. // 
  599. resources->ApplyResources(this, L"$this");
  600. this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
  601. this->Controls->Add(this->groupBox5);
  602. this->Controls->Add(this->groupBox3);
  603. this->Controls->Add(this->groupBox4);
  604. this->Controls->Add(this->menuStrip1);
  605. this->Controls->Add(this->groupBox1);
  606. this->Controls->Add(this->groupBox2);
  607. this->MainMenuStrip = this->menuStrip1;
  608. this->Name = L"Form1";
  609. this->Load += gcnew System::EventHandler(this, &Form1::Form1_Load);
  610. this->Paint += gcnew System::Windows::Forms::PaintEventHandler(this, &Form1::Form1_Paint);
  611. this->groupBox2->ResumeLayout(false);
  612. this->groupBox1->ResumeLayout(false);
  613. (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->pictureBox1))->EndInit();
  614. this->groupBox4->ResumeLayout(false);
  615. this->groupBox4->PerformLayout();
  616. this->groupBox3->ResumeLayout(false);
  617. this->groupBox3->PerformLayout();
  618. (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->trackBar1))->EndInit();
  619. this->menuStrip1->ResumeLayout(false);
  620. this->menuStrip1->PerformLayout();
  621. this->groupBox5->ResumeLayout(false);
  622. this->groupBox5->PerformLayout();
  623. (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->trackBar2))->EndInit();
  624. (cli::safe_cast<System::ComponentModel::ISupportInitialize^  >(this->myplayer))->EndInit();
  625. this->ResumeLayout(false);
  626. this->PerformLayout();
  627. }
  628. #pragma endregion
  629. private: System::Void Form1_Load(System::Object^  sender, System::EventArgs^  e) {      
  630.  
  631. // this->myplayer->openPlayer("");
  632.  }
  633. private: System::Void Form1_Paint(System::Object^  sender, System::Windows::Forms::PaintEventArgs^  e) {
  634.  }
  635. private: System::Void groupBox1_Enter(System::Object^  sender, System::EventArgs^  e) {
  636.  }
  637. private: System::Void pictureBox1_Click(System::Object^  sender, System::EventArgs^  e) {
  638.  }
  639. private: System::Void progressBar1_Click(System::Object^  sender, System::EventArgs^  e) {
  640.  }
  641. private: System::Void button8_Click(System::Object^  sender, System::EventArgs^  e) {
  642.  //快进
  643.  FastGo();
  644.  }
  645. private: System::Void menuStrip1_ItemClicked(System::Object^  sender, System::Windows::Forms::ToolStripItemClickedEventArgs^  e) {
  646.  }
  647. private: System::Void button2_Click(System::Object^  sender, System::EventArgs^  e) {
  648.  VolumeReduse();
  649.  }
  650.  private:System::Void BeginDVD()
  651.  {
  652.   pos = 0;
  653. Dishware =0;
  654.  trackBar1->Value = 5;
  655.  timer1->Enabled = false;
  656.  trackBar2->Value=0;
  657.  timer1->Interval = 1000;
  658.  linkLabel3->Text = "正常";
  659.  textBox1->Text = "5";
  660.  //DishURL = "D:\dish\1.wma";
  661.  if(radioButton1->Checked==true)
  662.  {
  663.  linkLabel1->Text = "现在读取第一张碟片!";
  664.  trackBar2->Maximum = 50;
  665.  Dishware = 1;
  666.  pos = 1;
  667.  //DishURL = "D:\dish\1.wma";
  668.  }
  669.  else if (radioButton2->Checked)
  670.  {
  671.  linkLabel1->Text = "现在读取第二张碟片!";
  672.  trackBar2->Maximum = 60;
  673.  Dishware = 2;
  674.  pos = 1;
  675.  //DishURL = "D:\dish\2.wma";
  676.  }
  677.  else if (radioButton3->Checked)
  678.  {
  679.  linkLabel1->Text = "现在读取第三张碟片!";
  680.  trackBar2->Maximum = 70;
  681.  Dishware = 3;
  682.  pos = 1;
  683. // DishURL = "D:\dish\3.wma";
  684.  }
  685.  else if (radioButton4->Checked)
  686.  {
  687.  linkLabel1->Text = "现在读取第四张碟片!";
  688.  trackBar2->Maximum = 80;
  689.  Dishware = 4;
  690.  pos = 1;
  691. // DishURL = "D:\dish\4.wma";
  692.  }
  693.  else if (radioButton5->Checked)
  694.  {
  695.  linkLabel1->Text = "现在读取第五张碟片!";
  696.  trackBar2->Maximum = 90;
  697.  Dishware = 5;
  698.  pos = 1;
  699. // DishURL = "D:\dish\5.wma";
  700.  }
  701.  else if (radioButton6->Checked)
  702.  {
  703.  linkLabel1->Text = "现在读取第六张碟片!";
  704.  trackBar2->Maximum = 100;
  705.  Dishware = 6;
  706.  pos = 1;
  707. // DishURL = "D:\dish\6.wma";
  708.  }
  709.  else 
  710.  {
  711.  linkLabel1->Text = "请选择碟片!";
  712.  trackBar2->Maximum =100;
  713.  }
  714.  linkLabel4->Text = System::Convert::ToString(trackBar2->Maximum);
  715.  if (pos == 1)
  716.  {
  717.  button3->Enabled = true;
  718.  button5->Enabled = true;
  719.  button6->Enabled = true;
  720.  button7->Enabled = true;
  721.  button8->Enabled = true;
  722.  button9->Enabled = true;
  723.  button10->Enabled = true;
  724.  button10->Text = System::Convert::ToString(Dishware);
  725.  }
  726.  }
  727. private: System::Void DVDPlay()
  728.  {
  729.  switch(Dishware)
  730.  {
  731.  case 1:
  732.  this->myplayer->URL ="D:\dish\1.wma";
  733.  case 2:
  734.  this->myplayer->URL ="D:\dish\2.wma";
  735.  case 3:
  736.  this->myplayer->URL ="D:\dish\3.wma";
  737.  case 4:
  738.  this->myplayer->URL ="D:\dish\4.wma";
  739.  case 5:
  740.  this->myplayer->URL ="D:\dish\5.wma";
  741.  case 6:
  742.  this->myplayer->URL ="D:\dish\6.wma";
  743. // default:
  744. //  this->myplayer->URL ="D:\dish\6.wma";
  745.  }
  746. // this->myplayer->URL = SDishURL;
  747.  button5->Enabled = false;
  748.  fasterlowerRate = 1;
  749.  timer1->Enabled = true;
  750.  linkLabel3->Text="正常";
  751.  linkLabel1->Text="正在播放....";
  752.  this->myplayer->Ctlcontrols->play();
  753.  }
  754. private: System::Void Pause()
  755.  {
  756.  this->myplayer->Ctlcontrols->pause();
  757.  button5->Enabled = true;
  758.  trackBar2->Value = volumeDVD ;
  759.  timer1->Enabled = false;
  760.  linkLabel1->Text = "暂停播放 ! ";
  761. // this->myplayer->Ctlcontrols->stop();
  762.  }
  763. private: System::Void Stop()
  764.  {
  765.  this->myplayer->Ctlcontrols->stop();
  766.  button5->Enabled = true;
  767.  trackBar2->Value = 0;
  768.  timer1->Enabled = false;
  769.  linkLabel1->Text = "停止播放 ! ";
  770.  }
  771. private: System::Void FastBack()
  772.  {
  773.  this->myplayer->Ctlcontrols->fastReverse();
  774.  if(fasterlowerRate >0 )
  775.  {
  776.  timer1->Enabled=false;
  777.  fasterlowerRate = -1;
  778.  timer1->Enabled =true;
  779.  }
  780.  switch (fasterlowerRate){
  781.  case -1:
  782.  timer1->Interval = 800; fasterlowerRate = -2;linkLabel3->Text = "快退*1";break;
  783.  case -2:
  784.  timer1->Interval = 600; fasterlowerRate = -3;linkLabel3->Text = "快退*2";break;
  785.  case -3:
  786.  timer1->Interval = 400; fasterlowerRate = -4; linkLabel3->Text = "快退*3";break;
  787.  case -4:
  788.  timer1->Interval = 200;fasterlowerRate = -5;linkLabel3->Text = "快退*4";break;
  789.  default:
  790.  timer1->Interval = 1000;fasterlowerRate=1;linkLabel3->Text = "正常";
  791.  }
  792.  }
  793. private: System::Void FastGo()
  794.  {
  795.  this->myplayer->Ctlcontrols->fastForward();
  796.   switch (fasterlowerRate){
  797.  case 1:
  798.  timer1->Interval =800;fasterlowerRate = 2;linkLabel3->Text = "快进*1";break;
  799.  case 2:
  800.  timer1->Interval = 600; fasterlowerRate = 3;linkLabel3->Text = "快进*2";break;
  801.  case 3:
  802.  timer1->Interval = 400; fasterlowerRate = 4; linkLabel3->Text = "快进*3";break;
  803.  case 4:
  804.  timer1->Interval = 200;fasterlowerRate = 5;linkLabel3->Text = "快进*4";break;
  805.  default:
  806.  timer1->Interval = 1000;fasterlowerRate = 1;linkLabel3->Text = "正常";
  807.  }
  808.  }
  809. private:System::Void LastOne()
  810. {
  811. this->myplayer->Ctlcontrols->previous();
  812. switch(Dishware)
  813.  {
  814.  case 1:
  815.  linkLabel1->Text ="这已经是第一曲了...";pos=0;break;
  816.  case 2:
  817.  radioButton1->Checked=true;pos=1;break;
  818.  case 3:
  819.  radioButton2->Checked=true;pos=1;break;
  820.  case 4:
  821.  radioButton3->Checked=true;pos=1;break;
  822.  case 5:
  823.  radioButton4->Checked=true;pos=1;break;
  824.  case 6:
  825.  radioButton5->Checked=true;pos=1;break;
  826.  default:
  827.  pos=0;linkLabel1->Text="错误!";
  828.  }
  829.  if (pos == 1)
  830.  {
  831.  BeginDVD();
  832.  button5->Enabled = false;
  833.  fasterlowerRate = 1;
  834.  timer1->Enabled = true;
  835.  linkLabel1->Text="正在播放....";
  836.  }
  837. }
  838. private: System::Void NextOne()
  839.  {
  840.  this->myplayer->Ctlcontrols->next();
  841.  switch(Dishware)
  842.  {
  843.  case 1:
  844.  radioButton2->Checked=true;pos=1;break;
  845.  case 2:
  846.  radioButton3->Checked=true;pos=1;break;
  847.  case 3:
  848.  radioButton4->Checked=true;pos=1;break;
  849.  case 4:
  850.  radioButton5->Checked=true;pos=1;break;
  851.  case 5:
  852.  radioButton6->Checked=true;pos=1;break;
  853.  case 6:
  854.  linkLabel1->Text="这已经最后一曲了...";pos=0;break;
  855.  default:
  856.  pos=0;linkLabel1->Text="错误!";
  857.  }
  858.  if(pos == 1)
  859.  {
  860.  BeginDVD();
  861.  button5->Enabled = false;
  862.  fasterlowerRate = 1;
  863.  timer1->Enabled = true;
  864.  linkLabel1->Text="正在播放....";
  865.  }
  866.  }
  867. private: System::Void VolumeAdd()
  868.  {
  869.  if (trackBar1->Value >9 )
  870.  {
  871.  this->myplayer->settings->volume = 100;
  872.  trackBar1->Value  = 10;
  873.  }
  874.  else
  875.  {
  876.  this->myplayer->settings->volume += 10;
  877.  trackBar1->Value = trackBar1 ->Value + 1;
  878.  }
  879.  textBox1->Text =System::Convert::ToString(trackBar1->Value) ;
  880.  }
  881. private: System::Void VolumeReduse()
  882.  {
  883.  if (trackBar1->Value < 1 )
  884.  {
  885.  this->myplayer->settings->volume = 0;
  886.  trackBar1->Value = 0;
  887.  }
  888.  else
  889.  {
  890.  this->myplayer->settings->volume -= 10;
  891.  trackBar1->Value = trackBar1 ->Value - 1;
  892.  }
  893.  textBox1->Text =System::Convert::ToString(trackBar1->Value) ;
  894.  }
  895. private: System::Void button4_Click(System::Object^  sender, System::EventArgs^  e) {
  896. BeginDVD();
  897.  }
  898. private: System::Void groupBox5_Enter(System::Object^  sender, System::EventArgs^  e) {
  899.  }
  900. private: System::Void button1_Click(System::Object^  sender, System::EventArgs^  e) {
  901.  VolumeAdd();
  902.  }
  903. private: System::Void textBox1_TextChanged(System::Object^  sender, System::EventArgs^  e) {
  904.  }
  905. private: System::Void textBox1_TextChanged_1(System::Object^  sender, System::EventArgs^  e) {
  906.  }
  907. private: System::Void groupBox2_ChangeUICues(System::Object^  sender, System::Windows::Forms::UICuesEventArgs^  e) {
  908.  }
  909. private: System::Void trackBar1_MouseUp(System::Object^  sender, System::Windows::Forms::MouseEventArgs^  e) {
  910.  textBox1->Text =System::Convert::ToString(trackBar1->Value) ;
  911.  }
  912. private: System::Void button11_Click_1(System::Object^  sender, System::EventArgs^  e) {
  913.  if (textBox1->Text!="")
  914.  {
  915.  //int i = System::Convert::ToInt32(textBox1->Text);
  916.  //System::Windows::Forms::MessageBox::Show(i.ToString());
  917.  //strncpy(textBox1->Text->ToCharArray(),DVDDishVolume.str,sizeof(textBox1->Text->ToString()));
  918.  //DVDDishVolume.str = textBox1->Text->ToCharArray();
  919.  //DVDDishVolume.str = textBox1->Text->ToString();
  920.  //strcpy(DVDDishVolume.str,textBox1->Text->ToCharArray());
  921.  //DVDDishVolume.Volume = atoi(DVDDishVolume.str);
  922. volumeDVD = System::Convert::ToInt32(textBox1->Text);
  923.  }
  924.  if (volumeDVD > 10 )
  925.  {
  926.  this->myplayer->settings->volume= 100;
  927.  trackBar1->Value = 10;
  928.  }
  929.  else if(volumeDVD < 0)
  930.  {
  931.  this->myplayer->settings->volume=0;
  932.  trackBar1->Value = 0;
  933.  }
  934.  else
  935.  {
  936.  this->myplayer->settings->volume = volumeDVD * 10;
  937.  trackBar1->Value =  volumeDVD;
  938.  }
  939.  textBox1->Text =System::Convert::ToString(trackBar1->Value) ;
  940.  }
  941. private: System::Void button5_Click(System::Object^  sender, System::EventArgs^  e) 
  942.  {
  943.  DVDPlay();
  944.  }
  945. private: System::Void button6_Click(System::Object^  sender, System::EventArgs^  e) {
  946.  Pause();
  947.  }
  948. private: System::Void button3_Click(System::Object^  sender, System::EventArgs^  e) {
  949.  Stop();
  950.  }
  951. private: System::Void timer1_Tick(System::Object^  sender, System::EventArgs^  e) {
  952.  if (fasterlowerRate > 0)
  953.  {
  954.  if ((trackBar2->Value)==(trackBar2->Maximum))
  955.  {
  956.  trackBar2->Value=0;
  957.  linkLabel1->Text = "停止播放 ! ";
  958.  timer1->Enabled = false;
  959.  }
  960.  else
  961.  {
  962.  trackBar2->Value = trackBar2->Value + 1;
  963.  volumeDVD = trackBar2->Value;
  964.  }
  965.  }
  966.  else
  967.  {
  968.  if ((trackBar2->Value)==(trackBar2->Minimum))
  969.  {
  970.  trackBar2->Value=0;
  971.  linkLabel1->Text = "停止播放 ! ";
  972.  timer1->Enabled = false;
  973.  }
  974.  else
  975.  {
  976.  trackBar2->Value = trackBar2->Value - 1;
  977.  volumeDVD = trackBar2->Value;
  978.  }
  979.  }
  980.  }
  981. private: System::Void groupBox2_Enter(System::Object^  sender, System::EventArgs^  e) {
  982.  }
  983. private: System::Void button7_Click(System::Object^  sender, System::EventArgs^  e) {
  984.   //快退
  985.  FastBack();
  986.  }
  987. private: System::Void button9_Click(System::Object^  sender, System::EventArgs^  e) { 
  988.  LastOne();
  989.  }
  990. private: System::Void button10_Click(System::Object^  sender, System::EventArgs^  e) {
  991.  NextOne();
  992.  }
  993. private: System::Void 开始ToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
  994.  BeginDVD();
  995.  }
  996. private: System::Void 开始ToolStripMenuItem2_Click(System::Object^  sender, System::EventArgs^  e) {
  997.  DVDPlay();
  998.  }
  999. private: System::Void 暂停ToolStripMenuItem1_Click(System::Object^  sender, System::EventArgs^  e) {
  1000.  Pause();
  1001.  }
  1002. private: System::Void 停止ToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
  1003.  Stop();
  1004.  }
  1005. private: System::Void 快进ToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
  1006.  FastGo();
  1007.  }
  1008. private: System::Void 快退ToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
  1009.  FastBack();
  1010.  }
  1011. private: System::Void 上一曲ToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
  1012.  LastOne();
  1013.  }
  1014. private: System::Void 下一曲ToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
  1015.  NextOne();
  1016.  }
  1017. private: System::Void 增加ToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
  1018.  VolumeAdd();
  1019.  }
  1020. private: System::Void 减小ToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
  1021.  VolumeReduse();
  1022.  }
  1023. private: System::Void 静音ToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
  1024.  trackBar1->Value = 0;
  1025.  textBox1->Text =System::Convert::ToString(trackBar1->Value) ;
  1026.  }
  1027. private: System::Void 推出ToolStripMenuItem_Click(System::Object^  sender, System::EventArgs^  e) {
  1028.  exit(0);
  1029.  }
  1030. };
  1031. }