private void AutoGeneratePlaylist() { using (var generatePlaylist = new FrmGeneratePlaylist()) { generatePlaylist.LibraryControl = LibraryControl; generatePlaylist.PlaylistControl = PlaylistControl; generatePlaylist.SetScreenMode(FrmGeneratePlaylist.ScreenMode.AutoGeneratePlaylist); generatePlaylist.ShowDialog(); } }
private void mnuGeneratePlaylist_Click(object sender, EventArgs e) { if (_generatePlaylist == null || _generatePlaylist.IsDisposed) { _generatePlaylist = new FrmGeneratePlaylist { LibraryControl = trackLibraryControl, PlaylistControl = playlistControl }; _generatePlaylist.SetScreenMode(FrmGeneratePlaylist.ScreenMode.GeneratePlaylist); } if (!_generatePlaylist.Visible) { WindowHelper.ShowDialog(this, _generatePlaylist); } }
private void mnuAutoGenerateSettings_Click(object sender, EventArgs e) { if (_autoGenerateSettings == null || _autoGenerateSettings.IsDisposed) { _autoGenerateSettings = new FrmGeneratePlaylist { LibraryControl = trackLibraryControl, PlaylistControl = playlistControl }; _autoGenerateSettings.SetScreenMode(FrmGeneratePlaylist.ScreenMode.AutoGenerateSettings); } if (!_autoGenerateSettings.Visible) { WindowHelper.ShowDialog(this, _autoGenerateSettings); } }