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); } }
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); } }