1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Windows.Forms;
- namespace BackgroundMusic_Demo
- {
- public partial class Form1 : Form
- {
- LYFZ.PlayMusicMedia.FormPlayMusic frm = new LYFZ.PlayMusicMedia.FormPlayMusic();
- public Form1()
- {
- InitializeComponent();
- this.Load += Form1_Load;
- // frm = new LYFZ.PlayMusicMedia.FormPlayMusic();
- }
- void Form1_Load(object sender, EventArgs e)
- {
-
- }
- private void button1_Click(object sender, EventArgs e)
- {
- if (frm != null)
- {
- frm.Play();
- }
- }
- private void checkBox1_CheckedChanged(object sender, EventArgs e)
- {
-
- frm.IsMuted = checkBox1.Checked;
- }
- private void trackBar2_Scroll(object sender, EventArgs e)
- {
- frm.SetMediaVol(trackBar2.Value);
- }
- private void button2_Click(object sender, EventArgs e)
- {
- frm.Stop();
- }
- private void button3_Click(object sender, EventArgs e)
- {
- frm.Pause();
- }
- }
- }
|