private void MnuLoopLibrary_Click(object sender, EventArgs e) { if (_frmLoopLibrary == null || _frmLoopLibrary.IsDisposed) { _frmLoopLibrary = new FrmSampleLibrary(); _frmLoopLibrary.Initialize(_application.BassPlayer, _application.LoopLibrary); } if (!_frmLoopLibrary.Visible) { WindowHelper.ShowDialog(this, _frmLoopLibrary); } }
private void btnImport_Click(object sender, EventArgs e) { if (_frmSampleLibrary == null || _frmSampleLibrary.IsDisposed) { _frmSampleLibrary = new FrmSampleLibrary(); _frmSampleLibrary.Initialize(BassPlayer, SampleLibrary, this); } if (!_frmSampleLibrary.Visible) { WindowHelper.ShowDialog(ParentForm, _frmSampleLibrary); } }