/// <summary> /// Play region button. /// </summary> public void PlayRegionButtonClick(object sender, DataGridViewCellEventArgs e) { if (e.ColumnIndex != 0 || e.RowIndex < 0) { return; } Player.Stop(); Player.LoadStream(wavs[e.RowIndex]); Player.Play(); }
/// <summary> /// Play click. /// </summary> public void PlayClick(object sender, EventArgs e) { Player.SoundOut.Stop(); Player.Stop(); Player.LoadStream(WA.Waves[tree.SelectedNode.Index]); kermalisPosition.Maximum = (int)Player.GetLength(); kermalisPosition.TickFrequency = kermalisPosition.Maximum / 10; kermalisPosition.LargeChange = kermalisPosition.Maximum / 20; Player.Play(); }