private void btnStart_Click(object sender, RoutedEventArgs e)
 {
     try
     {
         playing = true;
         sequencer1.GetTracks();
         sequencer1.Start();
         timer1.Start();
     }
     catch (Exception ex)
     {
         System.Windows.Forms.MessageBox.Show(ex.Message, "Error!", MessageBoxButtons.OK, MessageBoxIcon.Stop);
     }
 }
Esempio n. 2
0
 private void Start()
 {
     try
     {
         playing = true;
         sequencer1.GetTracks();
         sequencer1.Start();
         timer1.Start();
     }
     catch (Exception ex)
     {
         System.Windows.Forms.MessageBox.Show(ex.Message, "Error!", MessageBoxButtons.OK, MessageBoxIcon.Stop);
     }
 }