private void PlayButton_Click(object sender, EventArgs e) { if (isPlaying == false) { isPlaying = true; test = new TestPlaybackEngine(); test.Start(); } }
static void Main(string[] args) { // Commandpattern setup // Temp string s = "6t0"; int i = Int32.Parse(s.Substring(0, Char.IsNumber(s[1]) == true ? 2 : 1)) - 1; Console.WriteLine(i); TestPlaybackEngine test = new TestPlaybackEngine(); using (test) { test.Start(); Console.ReadLine(); test.Stop(); } }