public SamplerControl() { InitializeComponent(); SamplePlayers = new List <SamplePlayer>(); var settings = Settings.Default; AnalogXScratchHelper.SetApplicationFolder(settings.AnalogXScratchFolder); }
/// <summary> /// Binds the data to the controls /// </summary> private void BindData() { var artist = Sample.LinkedTrackDescription.Split('-')[0].Trim(); var title = Sample.LinkedTrackDescription.Split('-')[1].Trim(); var description = $"{Sample.Description} - {title} - {artist}"; description = description.Trim().Replace("&", "&&"); DebugHelper.WriteLine("Setting sample:" + description); lblSampleDescription.Text = description; btnScratch.Visible = AnalogXScratchHelper.IsScratchEnabled(); }
/// <summary> /// Handles the MouseDown event of the btnScratch control. /// </summary> private void btnScratch_MouseDown(object sender, MouseEventArgs e) { AnalogXScratchHelper.LaunchShort(Sample); }