コード例 #1
0
        public SamplerControl()
        {
            InitializeComponent();

            SamplePlayers = new List <SamplePlayer>();

            var settings = Settings.Default;

            AnalogXScratchHelper.SetApplicationFolder(settings.AnalogXScratchFolder);
        }
コード例 #2
0
        /// <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();
        }
コード例 #3
0
 /// <summary>
 ///     Handles the MouseDown event of the btnScratch control.
 /// </summary>
 private void btnScratch_MouseDown(object sender, MouseEventArgs e)
 {
     AnalogXScratchHelper.LaunchShort(Sample);
 }