示例#1
0
        private void AddPause(string pathToPause)
        {
            SoundLineEditor s = new SoundLineEditor(pathToPause, panelSamples, new Point(6, pauseX), 640, project);

            pauseX += 116;

            MessageBox.Show("Пауза загружена");
        }
示例#2
0
        private void buttonAddSample_Click(object sender, EventArgs e)
        {
            var ofd = new OpenFileDialog();

            ofd.Filter      = "Cursor Files|*.mp3;*.wav";
            ofd.Multiselect = true;
            if (ofd.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                for (int i = 0; i < ofd.FileNames.Length; i++)
                {
                    //Sample samp = new Sample(ofd.FileNames[i]);
                    //layoutSamples.Controls.Add(samp.lineEditor);
                    SoundLineEditor s = new SoundLineEditor(ofd.FileNames[i], panelSamples, new Point(6, x), 640, project);
                    x     += 116;
                    pauseX = x;
                }
                MessageBox.Show("Загружено");
            }
        }