Exemplo n.º 1
0
        private void btnStop_Click(object sender, EventArgs e)
        {
            Button           btn = sender as Button;
            SampleLineEditor s   = btn.Parent as SampleLineEditor;

            s.samp.Stop();
        }
Exemplo n.º 2
0
        private void btnPlayPause_Click(object sender, EventArgs e)
        {
            Button           btn = sender as Button;
            SampleLineEditor s   = btn.Parent as SampleLineEditor;

            if (btn.AccessibleName == "play")
            {
                btn.AccessibleName = "pause";
                btn.Text           = "Ⅱ";
                s.samp.Play();
            }
            else
            {
                btn.AccessibleName = "play";
                btn.Text           = "▶";
                s.samp.Pause();
            }

            //MessageBox.Show(s.samp.SoundPath);
        }