private void AutoGeneratePlaylist()
 {
     using (var generatePlaylist = new FrmGeneratePlaylist())
     {
         generatePlaylist.LibraryControl = LibraryControl;
         generatePlaylist.PlaylistControl = PlaylistControl;
         generatePlaylist.SetScreenMode(FrmGeneratePlaylist.ScreenMode.AutoGeneratePlaylist);
         generatePlaylist.ShowDialog();
     }
 }
Пример #2
0
 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);
     }
 }
Пример #3
0
 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);
     }
 }
Пример #4
0
 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);
     }
 }
Пример #5
0
 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);
     }
 }