Ejemplo n.º 1
0
 public Infrom(string Tit, string Con, string mus_path)
 {
     InitializeComponent();
     label_Title.Content  = Tit;
     textBox_Content.Text = Con;
     PlayMusic.Playsound(mus_path);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 双击时,播放音乐
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void listView_Music_MouseDoubleClick(object sender, MouseButtonEventArgs e)
 {
     if (listView_Music.SelectedIndex != -1)
     {
         DataRowView c    = (DataRowView)listView_Music.SelectedItem;
         string      path = c.Row[1].ToString();
         //          myPlayer.Source = new Uri(path);
         PlayMusic.Playsound(path);
     }
 }